Simple Question (Direct)
Simple Question
Q20013932
P641
Q349
USER
Which sport was Juan Alberto Castro a part of ?
(Q20013932,P641,c(Q349))
action filter_type
action find
entity Q20013932
relation P641
type Q349
['Q20013932', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q20013932 property:P641 ?f . ?f rdf:type ontology:Q349 }
Juan Alberto Castro
action filter_type
action find
entity Juan Alberto Castro
relation sport
type sport
['Juan Alberto Castro', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Juan_Alberto_Castro property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q20013932,P641,c(Q349))
action filter_type
action find
entity Q20013932
relation P641
type Q349
The [ANSWER] was Juan Alberto Castro a part of
['Q20013932', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q20013932 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
The association football was Juan Alberto Castro a part of
association football
action filter_type
action find
entity Juan Alberto Castro
relation sport
type sport
['Juan Alberto Castro', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Juan_Alberto_Castro property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
Which territory is the origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?u WHERE { resource:Q2736 property:P495 ?u . ?u rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:association_football property:country_of_origin ?u . ?u rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
[ANSWER] is the origin of that sport
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?u WHERE { resource:Q2736 property:P495 ?u . ?u rdf:type ontology:Q1496967 }
England
England is the origin of that sport
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:association_football property:country_of_origin ?u . ?u rdf:type ontology:territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P840
Q1496967 Q15416 Q838948
USER
How many territories are greater number of television programs and works of art set in than that territory ?
(c(Q15416)|c(Q838948),P840,c(Q1496967))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q15416
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q21
relation P840
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?j ) WHERE { VALUES ( ?p ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?s rdf:type ?p } GROUP BY ?m } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:P840 resource:Q21 . { { ?y rdf:type ontology:Q15416 } UNION { ?y rdf:type ontology:Q838948 } } } } }
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity England
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?j ) WHERE { VALUES ( ?p ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?s rdf:type ?p } GROUP BY ?m } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:narrative_location resource:England . { { ?y rdf:type ontology:television_program } UNION { ?y rdf:type ontology:work_of_art } } } } }
[]
territorial entity television program work of art
SYSTEM
0
(c(Q15416)|c(Q838948),P840,c(Q1496967))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q15416
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q21
relation P840
type Q15416
type Q838948
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?j ) WHERE { VALUES ( ?p ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?s rdf:type ?p } GROUP BY ?m } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:P840 resource:Q21 . { { ?y rdf:type ontology:Q15416 } UNION { ?y rdf:type ontology:Q838948 } } } } }
0
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity England
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?j ) WHERE { VALUES ( ?p ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?s rdf:type ?p } GROUP BY ?m } . FILTER ( ?j > ?i ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:narrative_location resource:England . { { ?y rdf:type ontology:television_program } UNION { ?y rdf:type ontology:work_of_art } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21
P17
Q15617994
USER
Which administrative territory is England situated in ?
(Q21,P17,c(Q15617994))
action filter_type
action find
entity Q21
relation P17
type Q15617994
['Q21', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q21 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
England
action filter_type
action find
entity England
relation country
type designation for an administrative territorial entity
['England', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:England property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q21,P17,c(Q15617994))
action filter_type
action find
entity Q21
relation P17
type Q15617994
England is situated in [ANSWER]
['Q21', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q21 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
United Kingdom
England is situated in United Kingdom
United Kingdom
action filter_type
action find
entity England
relation country
type designation for an administrative territorial entity
['England', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:England property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15231
Q15617994
USER
And how about Mont Raimeux?
(Q15231,P17,c(Q15617994))
action filter_type
action find
entity Q15231
relation P17
type Q15617994
['Q15231', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q15231 property:P17 ?x }
Mont Raimeux
action filter_type
action find
entity Mont Raimeux
relation country
type designation for an administrative territorial entity
['Mont Raimeux', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mont_Raimeux property:country ?x }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q15231,P17,c(Q15617994))
action filter_type
action find
entity Q15231
relation P17
type Q15617994
[ANSWER]
['Q15231', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q15231 property:P17 ?x }
Switzerland
Switzerland
action filter_type
action find
entity Mont Raimeux
relation country
type designation for an administrative territorial entity
['Mont Raimeux', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mont_Raimeux property:country ?x }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5235577 Q21
P19 P36
Q56061
USER
Which administrative territories are called the capital of England or are the places of birth of David James Walker ?
OR((Q21,P36,c(Q56061)), (Q5235577,P19,c(Q56061)))
action filter_type
action union
action find
entity Q21
relation P36
action find
entity Q5235577
relation P19
type Q56061
{'OR': [['Q21', 'P36', {'concept': 'Q56061'}], ['Q5235577', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q21 property:P36 ?u } UNION { resource:Q5235577 property:P19 ?u } } . ?u rdf:type ontology:Q56061 }
David James Walker England
action filter_type
action union
action find
entity England
relation capital
action find
entity David James Walker
relation place of birth
type administrative territorial entity
{'OR': [['England', 'capital', {'concept': 'administrative territorial entity'}], ['David James Walker', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:England property:capital ?u } UNION { resource:David_James_Walker property:place_of_birth ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q172 Q84
SYSTEM
Toronto, London
Q172 Q84
OR((Q21,P36,c(Q56061)), (Q5235577,P19,c(Q56061)))
action filter_type
action union
action find
entity Q21
relation P36
action find
entity Q5235577
relation P19
type Q56061
[ANSWERS] are called the capital of England or are the places of birth of David James Walker
{'OR': [['Q21', 'P36', {'concept': 'Q56061'}], ['Q5235577', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q21 property:P36 ?u } UNION { resource:Q5235577 property:P19 ?u } } . ?u rdf:type ontology:Q56061 }
Toronto London
Toronto and London are called the capital of England or are the places of birth of David James Walker
Toronto London
action filter_type
action union
action find
entity England
relation capital
action find
entity David James Walker
relation place of birth
type administrative territorial entity
{'OR': [['England', 'capital', {'concept': 'administrative territorial entity'}], ['David James Walker', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:England property:capital ?u } UNION { resource:David_James_Walker property:place_of_birth ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q711
P495
Q15617994 Q7725634 Q201658
USER
Which administrative territories are the origins of approximately the same number of literary works or film genres as Mongolia ?
(c(Q7725634)|c(Q201658),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q711
relation P495
type Q7725634
type Q201658
[[{'concept': 'Q7725634'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:Q7725634 ) ( ontology:Q201658 ) } . ?p rdf:type ?z } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { { ?o rdf:type ontology:Q7725634 } UNION { ?o rdf:type ontology:Q201658 } } . ?o property:P495 resource:Q711 } } . FILTER ( ?a = ?s ) }
Mongolia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Mongolia
relation country of origin
type literary work
type film genre
[[{'concept': 'literary work'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:literary_work ) ( ontology:film_genre ) } . ?p rdf:type ?z } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { { ?o rdf:type ontology:literary_work } UNION { ?o rdf:type ontology:film_genre } } . ?o property:country_of_origin resource:Mongolia } } . FILTER ( ?a = ?s ) }
[]
designation for an administrative territorial entity literary work film genre
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q7725634)|c(Q201658),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q711
relation P495
type Q7725634
type Q201658
[ANSWERS] are the origins of approximately the same number of literary works or film genres as Mongolia
[[{'concept': 'Q7725634'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:Q7725634 ) ( ontology:Q201658 ) } . ?p rdf:type ?z } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { { ?o rdf:type ontology:Q7725634 } UNION { ?o rdf:type ontology:Q201658 } } . ?o property:P495 resource:Q711 } } . FILTER ( ?a = ?s ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the origins of approximately the same number of literary works or film genres as Mongolia
Italy Brazil Georgia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Mongolia
relation country of origin
type literary work
type film genre
[[{'concept': 'literary work'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:literary_work ) ( ontology:film_genre ) } . ?p rdf:type ?z } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { { ?o rdf:type ontology:literary_work } UNION { ?o rdf:type ontology:film_genre } } . ?o property:country_of_origin resource:Mongolia } } . FILTER ( ?a = ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q244
P495
Q15617994 Q7725634 Q201658
USER
And what about Barbados?
(c(Q7725634)|c(Q201658),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q244
relation P495
type Q7725634
type Q201658
[[{'concept': 'Q7725634'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) ?t WHERE { VALUES ( ?p ) { ( ontology:Q7725634 ) ( ontology:Q201658 ) } . ?y rdf:type ?p } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { ?n rdf:type ?d . VALUES ( ?d ) { ( ontology:Q7725634 ) ( ontology:Q201658 ) } } . ?n property:P495 resource:Q244 } } . FILTER ( ?k = ?m ) }
Barbados
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Barbados
relation country of origin
type literary work
type film genre
[[{'concept': 'literary work'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) ?t WHERE { VALUES ( ?p ) { ( ontology:literary_work ) ( ontology:film_genre ) } . ?y rdf:type ?p } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { ?n rdf:type ?d . VALUES ( ?d ) { ( ontology:literary_work ) ( ontology:film_genre ) } } . ?n property:country_of_origin resource:Barbados } } . FILTER ( ?k = ?m ) }
[]
designation for an administrative territorial entity literary work film genre
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q7725634)|c(Q201658),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q244
relation P495
type Q7725634
type Q201658
[ANSWERS]
[[{'concept': 'Q7725634'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) ?t WHERE { VALUES ( ?p ) { ( ontology:Q7725634 ) ( ontology:Q201658 ) } . ?y rdf:type ?p } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { ?n rdf:type ?d . VALUES ( ?d ) { ( ontology:Q7725634 ) ( ontology:Q201658 ) } } . ?n property:P495 resource:Q244 } } . FILTER ( ?k = ?m ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy Brazil Georgia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Barbados
relation country of origin
type literary work
type film genre
[[{'concept': 'literary work'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) ?t WHERE { VALUES ( ?p ) { ( ontology:literary_work ) ( ontology:film_genre ) } . ?y rdf:type ?p } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { ?n rdf:type ?d . VALUES ( ?d ) { ( ontology:literary_work ) ( ontology:film_genre ) } } . ?n property:country_of_origin resource:Barbados } } . FILTER ( ?k = ?m ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q563103
P530
Q15617994
USER
Do Dreisbach have ambassadorial relations with those ones ?
(Q563103,P530,Q38) (Q563103,P530,Q155) (Q563103,P530,Q230)
action is_in
entity prev_answer
action find
entity Q563103
relation P530
['Q563103', 'P530', 'Q38'] ['Q563103', 'P530', 'Q155'] ['Q563103', 'P530', 'Q230']
ASK WHERE { resource:Q563103 property:P530 ?k . VALUES ( ?k ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } }
Dreisbach
action is_in
entity prev_answer
action find
entity Dreisbach
relation diplomatic relation
['Dreisbach', 'diplomatic relation', 'Italy'] ['Dreisbach', 'diplomatic relation', 'Brazil'] ['Dreisbach', 'diplomatic relation', 'Georgia']
ASK WHERE { resource:Dreisbach property:diplomatic_relation ?k . VALUES ( ?k ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q563103,P530,Q38) (Q563103,P530,Q155) (Q563103,P530,Q230)
action is_in
entity prev_answer
action find
entity Q563103
relation P530
[ANSWER]
['Q563103', 'P530', 'Q38'] ['Q563103', 'P530', 'Q155'] ['Q563103', 'P530', 'Q230']
ASK WHERE { resource:Q563103 property:P530 ?k . VALUES ( ?k ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } }
No
action is_in
entity prev_answer
action find
entity Dreisbach
relation diplomatic relation
['Dreisbach', 'diplomatic relation', 'Italy'] ['Dreisbach', 'diplomatic relation', 'Brazil'] ['Dreisbach', 'diplomatic relation', 'Georgia']
ASK WHERE { resource:Dreisbach property:diplomatic_relation ?k . VALUES ( ?k ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q183
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with around the same number of administrative territories as Germany ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?a ) WHERE { ?e property:P530 ?v . ?e rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { resource:Q183 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?a = ?q ) }
Germany
action approx
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 Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?a ) WHERE { ?e property:diplomatic_relation ?v . ?e rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { resource:Germany property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?a = ?q ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[ANSWERS] are known to have diplomatic connections with around the same number of administrative territories as Germany
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?a ) WHERE { ?e property:P530 ?v . ?e rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { resource:Q183 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . FILTER ( ?a = ?q ) }
Germany Australia
Germany and Australia are known to have diplomatic connections with around the same number of administrative territories as Germany
Germany Australia
action approx
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 Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?a ) WHERE { ?e property:diplomatic_relation ?v . ?e rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { resource:Germany property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . FILTER ( ?a = ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q691
P530
Q15617994 Q1048835
USER
And how about Papua New Guinea?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?i ) WHERE { ?f property:P530 ?e . ?f rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Q691 property:P530 ?u . ?u rdf:type ontology:Q1048835 } } }
Papua New Guinea
action approx
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 Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?i ) WHERE { ?f property:diplomatic_relation ?e . ?f rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?i ) WHERE { ?f property:P530 ?e . ?f rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Q691 property:P530 ?u . ?u rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
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 Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?e ) AS ?i ) WHERE { ?f property:diplomatic_relation ?e . ?f rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q40
P35
Q502895
USER
Who are the chiefs of state of that political territory ?
(Q40,P35,c(Q502895))
action filter_type
action find
entity Q40
relation P35
type Q502895
['Q40', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q40 property:P35 ?k . ?k rdf:type ontology:Q502895 }
Austria
action filter_type
action find
entity Austria
relation head of state
type common name
['Austria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Austria property:head_of_state ?k . ?k rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q16
SYSTEM
Did you mean Canada ?
Q35 Q16 Q40
(Q35,P35,c(Q502895)) (Q16,P35,c(Q502895)) (Q40,P35,c(Q502895))
[ANSWER]
['Q35', 'P35', {'concept': 'Q502895'}] ['Q16', 'P35', {'concept': 'Q502895'}] ['Q40', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q40 property:P35 ?k . ?k rdf:type ontology:Q502895 }
Denmark Canada Austria
Did you mean Canada ?
Canada
['Denmark', 'head of state', {'concept': 'common name'}] ['Canada', 'head of state', {'concept': 'common name'}] ['Austria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Austria property:head_of_state ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Austria. Could you tell me the answer for that?
(Q40,P35,c(Q502895))
Q40
['Q40', 'P35', {'concept': 'Q502895'}]
['Austria', 'head of state', {'concept': 'common name'}]
[]
Q1260 Q11753 Q78490
SYSTEM
Kurt Waldheim, Heinz Fischer, Thomas Klestil
Q72898 Q84263 Q13014 Q72856 Q1260 Q84475 Q78490 Q84204 Q11753 Q11726
(Q40,P35,c(Q502895))
action filter_type
action find
entity Q40
relation P35
type Q502895
The chiefs of state of that political territory are [ANSWERS]
['Q40', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q40 property:P35 ?k . ?k rdf:type ontology:Q502895 }
Adolf Schärf Wilhelm Miklas Franz Jonas Rudolf Kirchschläger Kurt Waldheim Michael Hainisch Thomas Klestil Theodor Körner Heinz Fischer Karl Renner
The chiefs of state of that political territory are Kurt Waldheim, Heinz Fischer and Thomas Klestil
Kurt Waldheim Heinz Fischer Thomas Klestil
action filter_type
action find
entity Austria
relation head of state
type common name
['Austria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Austria property:head_of_state ?k . ?k rdf:type ontology:common_name }
[]