Simple Question (Direct)
Simple Question
Q7152060
P641
Q349
USER
What was the sport that Paul Lodge was a part of ?
(Q7152060,P641,c(Q349))
action filter_type
action find
entity Q7152060
relation P641
type Q349
['Q7152060', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q7152060 property:P641 ?m . ?m rdf:type ontology:Q349 }
Paul Lodge
action filter_type
action find
entity Paul Lodge
relation sport
type sport
['Paul Lodge', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:Paul_Lodge property:sport ?m . ?m rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7152060,P641,c(Q349))
action filter_type
action find
entity Q7152060
relation P641
type Q349
The sport that Paul Lodge was a part of was [ANSWER]
['Q7152060', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q7152060 property:P641 ?m . ?m rdf:type ontology:Q349 }
association football
The sport that Paul Lodge was a part of was association football
association football
action filter_type
action find
entity Paul Lodge
relation sport
type sport
['Paul Lodge', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:Paul_Lodge property:sport ?m . ?m rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P264
Q2031291
USER
Which release has been sponsored by that sport for its recording ?
(c(Q2031291),P264,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q2736']
SELECT DISTINCT ?v WHERE { ?v property:P264 resource:Q2736 . ?v rdf:type ontology:Q2031291 }
association football
action filter_type
action find_reverse
entity association football
relation record label
type release
[{'concept': 'release'}, 'record label', 'association football']
SELECT DISTINCT ?v WHERE { ?v property:record_label resource:association_football . ?v rdf:type ontology:release }
[]
release
Q8052504
SYSTEM
Yeovil True
Q8052504
(c(Q2031291),P264,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P264
type Q2031291
[ANSWER] has been sponsored by that sport for its recording
[{'concept': 'Q2031291'}, 'P264', 'Q2736']
SELECT DISTINCT ?v WHERE { ?v property:P264 resource:Q2736 . ?v rdf:type ontology:Q2031291 }
Yeovil True
Yeovil True has been sponsored by that sport for its recording
Yeovil True
action filter_type
action find_reverse
entity association football
relation record label
type release
[{'concept': 'release'}, 'record label', 'association football']
SELECT DISTINCT ?v WHERE { ?v property:record_label resource:association_football . ?v rdf:type ontology:release }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P264
Q12139612 Q349
USER
How many enumerations or sports sponsored the recording of that release ?
(Q8052504,P264,c(Q12139612)) (Q8052504,P264,c(Q349)) (Q8052504,P264,c(Q12139612)) (Q8052504,P264,c(Q349))
action count
action union
action filter_type
action find
entity Q8052504
relation P264
type Q12139612
action filter_type
action find
entity Q8052504
relation P264
type Q349
['Q8052504', 'P264', {'concept': 'Q12139612'}] ['Q8052504', 'P264', {'concept': 'Q349'}] ['Q8052504', 'P264', {'concept': 'Q12139612'}] ['Q8052504', 'P264', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { resource:Q8052504 property:P264 ?g . ?g rdf:type ontology:Q12139612 } UNION { resource:Q8052504 property:P264 ?g . ?g rdf:type ontology:Q349 } }
action count
action union
action filter_type
action find
entity Yeovil True
relation record label
type enumeration
action filter_type
action find
entity Yeovil True
relation record label
type sport
['Yeovil True', 'record label', {'concept': 'enumeration'}] ['Yeovil True', 'record label', {'concept': 'sport'}] ['Yeovil True', 'record label', {'concept': 'enumeration'}] ['Yeovil True', 'record label', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { resource:Yeovil_True property:record_label ?g . ?g rdf:type ontology:enumeration } UNION { resource:Yeovil_True property:record_label ?g . ?g rdf:type ontology:sport } }
[]
enumeration sport
SYSTEM
2
Q193259 Q2736
(Q8052504,P264,c(Q12139612)) (Q8052504,P264,c(Q349)) (Q8052504,P264,c(Q12139612)) (Q8052504,P264,c(Q349))
action count
action union
action filter_type
action find
entity Q8052504
relation P264
type Q12139612
action filter_type
action find
entity Q8052504
relation P264
type Q349
[ANSWER]
['Q8052504', 'P264', {'concept': 'Q12139612'}] ['Q8052504', 'P264', {'concept': 'Q349'}] ['Q8052504', 'P264', {'concept': 'Q12139612'}] ['Q8052504', 'P264', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { resource:Q8052504 property:P264 ?g . ?g rdf:type ontology:Q12139612 } UNION { resource:Q8052504 property:P264 ?g . ?g rdf:type ontology:Q349 } }
UK Singles chart association football
2
action count
action union
action filter_type
action find
entity Yeovil True
relation record label
type enumeration
action filter_type
action find
entity Yeovil True
relation record label
type sport
['Yeovil True', 'record label', {'concept': 'enumeration'}] ['Yeovil True', 'record label', {'concept': 'sport'}] ['Yeovil True', 'record label', {'concept': 'enumeration'}] ['Yeovil True', 'record label', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { resource:Yeovil_True property:record_label ?g . ?g rdf:type ontology:enumeration } UNION { resource:Yeovil_True property:record_label ?g . ?g rdf:type ontology:sport } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2736
P495
Q1496967
USER
Where did association football originate ?
(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
Association football originated from [ANSWER]
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?u WHERE { resource:Q2736 property:P495 ?u . ?u rdf:type ontology:Q1496967 }
England
Association football originated from England
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 }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7152060
P27
Q15617994
USER
Which administrative territory is the native country of Paul Lodge ?
(Q7152060,P27,c(Q15617994))
action filter_type
action find
entity Q7152060
relation P27
type Q15617994
['Q7152060', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q7152060 property:P27 ?m }
Paul Lodge
action filter_type
action find
entity Paul Lodge
relation country of citizenship
type designation for an administrative territorial entity
['Paul Lodge', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Paul_Lodge property:country_of_citizenship ?m }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q7152060,P27,c(Q15617994))
action filter_type
action find
entity Q7152060
relation P27
type Q15617994
[ANSWER] is the native country of Paul Lodge
['Q7152060', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q7152060 property:P27 ?m }
United Kingdom
United Kingdom is the native country of Paul Lodge
United Kingdom
action filter_type
action find
entity Paul Lodge
relation country of citizenship
type designation for an administrative territorial entity
['Paul Lodge', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Paul_Lodge property:country_of_citizenship ?m }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1470036
Q15617994
USER
And what about Samuel B. Avis?
(Q1470036,P27,c(Q15617994))
action filter_type
action find
entity Q1470036
relation P27
type Q15617994
['Q1470036', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1470036 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Samuel B. Avis
action filter_type
action find
entity Samuel B. Avis
relation country of citizenship
type designation for an administrative territorial entity
['Samuel B. Avis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Samuel_B._Avis property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1470036,P27,c(Q15617994))
action filter_type
action find
entity Q1470036
relation P27
type Q15617994
[ANSWER]
['Q1470036', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1470036 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Samuel B. Avis
relation country of citizenship
type designation for an administrative territorial entity
['Samuel B. Avis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Samuel_B._Avis property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with min number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?j ) { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?v ) WHERE { ?g property:P530 ?o . ?g rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?y ) WHERE { ?s property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?y = ?j ) }
action argmin
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 ?s WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?j ) { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?v ) WHERE { ?g property:diplomatic_relation ?o . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?y ) WHERE { ?s property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?y = ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q29999 Q786 Q924
SYSTEM
Kingdom of the Netherlands, Dominican Republic, Tanzania
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic associations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?j ) { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?v ) WHERE { ?g property:P530 ?o . ?g rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?y ) WHERE { ?s property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?y = ?j ) }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Kingdom of the Netherlands, Dominican Republic and Tanzania have diplomatic associations with min number of administrative territories
Kingdom of the Netherlands Dominican Republic Tanzania
action argmin
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 ?s WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?j ) { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?v ) WHERE { ?g property:diplomatic_relation ?o . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?y ) WHERE { ?s property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?y = ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q709
P85
Q484692 Q7725634 Q15617994
USER
How many administrative territories have approximately the same number of hymns and literary works as their national anthem as Marshall Islands ?
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action count
action filter_multi_types
action find
entity Q709
relation P85
type Q484692
type Q7725634
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?p WHERE { { ?p property:P85 ?c . ?p rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q484692 } UNION { ?p property:P85 ?c . ?p rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q7725634 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Q709 property:P85 ?o . { { ?o rdf:type ontology:Q484692 } UNION { ?o rdf:type ontology:Q7725634 } } } } . FILTER ( ?a = ?u ) }
Marshall Islands
action count
action approx
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
action count
action filter_multi_types
action find
entity Marshall Islands
relation anthem
type hymn
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?p WHERE { { ?p property:anthem ?c . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:hymn } UNION { ?p property:anthem ?c . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:literary_work } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Marshall_Islands property:anthem ?o . { { ?o rdf:type ontology:hymn } UNION { ?o rdf:type ontology:literary_work } } } } . FILTER ( ?a = ?u ) }
[]
hymn literary work designation for an administrative territorial entity
SYSTEM
181
Q702 Q804 Q801 Q707 Q709 Q811 Q805 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q800 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q813 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q155 Q792 Q790 Q4628 Q779011 Q794 Q954 Q889 Q884 Q881 Q739 Q826 Q796 Q241 Q244 Q1019 Q153136 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1044 Q1042 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q783 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q1050 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q760 Q574 Q874 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q817 Q810 Q770 Q1014 Q1016 Q1011 Q945 Q678 Q29 Q1039 Q672 Q822 Q298 Q863 Q869 Q953
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action count
action filter_multi_types
action find
entity Q709
relation P85
type Q484692
type Q7725634
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?p WHERE { { ?p property:P85 ?c . ?p rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q484692 } UNION { ?p property:P85 ?c . ?p rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q7725634 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Q709 property:P85 ?o . { { ?o rdf:type ontology:Q484692 } UNION { ?o rdf:type ontology:Q7725634 } } } } . FILTER ( ?a = ?u ) }
Federated States of Micronesia Panama Israel Flevoland Marshall Islands Nicaragua Yemen Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Costa Rica Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Kyrgyzstan Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece Brazil El Salvador Haiti Faroe Islands Principality of Montenegro Iran Zimbabwe Afghanistan South Korea Vietnam Colombia Maldives Iraq Cuba Barbados Madagascar Habsburg Empire Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Sierra Leone Seychelles Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Honduras Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Swaziland Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar Saint Lucia East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Tunisia Kuwait Jordan Friesland Liberia Libya Cape Verde Togo Tonga Spain Sao Tomé and Príncipe Tuvalu Lebanon Chile Tajikistan Thailand Zambia
181
action count
action approx
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
action count
action filter_multi_types
action find
entity Marshall Islands
relation anthem
type hymn
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?p WHERE { { ?p property:anthem ?c . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:hymn } UNION { ?p property:anthem ?c . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:literary_work } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Marshall_Islands property:anthem ?o . { { ?o rdf:type ontology:hymn } UNION { ?o rdf:type ontology:literary_work } } } } . FILTER ( ?a = ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q790
P85
Q484692 Q7725634 Q15617994
USER
And what about Haiti?
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action count
action filter_multi_types
action find
entity Q790
relation P85
type Q484692
type Q7725634
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) ?p WHERE { { ?p property:P85 ?o . ?p rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q484692 } UNION { ?p property:P85 ?o . ?p rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q7725634 } } GROUP BY ?p } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { resource:Q790 property:P85 ?y . { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } } } }
Haiti
action count
action approx
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
action count
action filter_multi_types
action find
entity Haiti
relation anthem
type hymn
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) ?p WHERE { { ?p property:anthem ?o . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:hymn } UNION { ?p property:anthem ?o . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:literary_work } } GROUP BY ?p } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { resource:Haiti property:anthem ?y . { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:hymn ) ( ontology:literary_work ) } } } } }
[]
hymn literary work designation for an administrative territorial entity
SYSTEM
181
Q702 Q804 Q801 Q707 Q709 Q811 Q805 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q800 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q813 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q155 Q792 Q790 Q4628 Q779011 Q794 Q954 Q889 Q884 Q881 Q739 Q826 Q796 Q241 Q244 Q1019 Q153136 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1044 Q1042 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q783 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q1050 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q760 Q574 Q874 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q817 Q810 Q770 Q1014 Q1016 Q1011 Q945 Q678 Q29 Q1039 Q672 Q822 Q298 Q863 Q869 Q953
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action count
action filter_multi_types
action find
entity Q790
relation P85
type Q484692
type Q7725634
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) ?p WHERE { { ?p property:P85 ?o . ?p rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q484692 } UNION { ?p property:P85 ?o . ?p rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q7725634 } } GROUP BY ?p } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { resource:Q790 property:P85 ?y . { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } } } }
Federated States of Micronesia Panama Israel Flevoland Marshall Islands Nicaragua Yemen Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Costa Rica Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Kyrgyzstan Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece Brazil El Salvador Haiti Faroe Islands Principality of Montenegro Iran Zimbabwe Afghanistan South Korea Vietnam Colombia Maldives Iraq Cuba Barbados Madagascar Habsburg Empire Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Sierra Leone Seychelles Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Honduras Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Swaziland Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar Saint Lucia East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Tunisia Kuwait Jordan Friesland Liberia Libya Cape Verde Togo Tonga Spain Sao Tomé and Príncipe Tuvalu Lebanon Chile Tajikistan Thailand Zambia
181
action count
action approx
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
action count
action filter_multi_types
action find
entity Haiti
relation anthem
type hymn
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) ?p WHERE { { ?p property:anthem ?o . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:hymn } UNION { ?p property:anthem ?o . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:literary_work } } GROUP BY ?p } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { resource:Haiti property:anthem ?y . { ?y rdf:type ?a . VALUES ( ?a ) { ( ontology:hymn ) ( ontology:literary_work ) } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q786
P1376
Q56061
USER
Which administrative territory is the capital of Dominican Republic ?
(c(Q56061),P1376,Q786)
action filter_type
action find_reverse
entity Q786
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q786']
SELECT DISTINCT ?x WHERE { ?x property:P1376 resource:Q786 . ?x rdf:type ontology:Q56061 }
Dominican Republic
action filter_type
action find_reverse
entity Dominican Republic
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Dominican Republic']
SELECT DISTINCT ?x WHERE { ?x property:capital_of resource:Dominican_Republic . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q34820
SYSTEM
Santo Domingo
Q34820
(c(Q56061),P1376,Q786)
action filter_type
action find_reverse
entity Q786
relation P1376
type Q56061
[ANSWER] is the capital of Dominican Republic
[{'concept': 'Q56061'}, 'P1376', 'Q786']
SELECT DISTINCT ?x WHERE { ?x property:P1376 resource:Q786 . ?x rdf:type ontology:Q56061 }
Santo Domingo
Santo Domingo is the capital of Dominican Republic
Santo Domingo
action filter_type
action find_reverse
entity Dominican Republic
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Dominican Republic']
SELECT DISTINCT ?x WHERE { ?x property:capital_of resource:Dominican_Republic . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q786
P37
Q34770
USER
What is considered to be the official language of Dominican Republic ?
(Q786,P37,c(Q34770))
action filter_type
action find
entity Q786
relation P37
type Q34770
['Q786', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q34770 . resource:Q786 property:P37 ?i }
Dominican Republic
action filter_type
action find
entity Dominican Republic
relation official language
type language
['Dominican Republic', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:language . resource:Dominican_Republic property:official_language ?i }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q786,P37,c(Q34770))
action filter_type
action find
entity Q786
relation P37
type Q34770
Republic [ANSWER] is considered to be the official language of Dominican Republic
['Q786', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q34770 . resource:Q786 property:P37 ?i }
Spanish
Republic Spanish is considered to be the official language of Dominican Republic
Spanish
action filter_type
action find
entity Dominican Republic
relation official language
type language
['Dominican Republic', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:language . resource:Dominican_Republic property:official_language ?i }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q986
Q34770
USER
And what about Eritrea?
(Q986,P37,c(Q34770))
action filter_type
action find
entity Q986
relation P37
type Q34770
['Q986', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q986 property:P37 ?b . ?b rdf:type ontology:Q34770 }
Eritrea
action filter_type
action find
entity Eritrea
relation official language
type language
['Eritrea', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Eritrea property:official_language ?b . ?b rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q986,P37,c(Q34770))
action filter_type
action find
entity Q986
relation P37
type Q34770
[ANSWER]
['Q986', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q986 property:P37 ?b . ?b rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Eritrea
relation official language
type language
['Eritrea', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Eritrea property:official_language ?b . ?b rdf:type ontology:language }
[]