Simple Question (Direct)
Simple Question
Q832951
P19
Q515
USER
Which city is the place of birth of László Bodnár ?
(Q832951,P19,c(Q515))
action filter_type
action find
entity Q832951
relation P19
type Q515
['Q832951', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q832951 property:P19 ?w . ?w rdf:type ontology:Q515 }
László Bodnár
action filter_type
action find
entity László Bodnár
relation place of birth
type city
['László Bodnár', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:László_Bodnár property:place_of_birth ?w . ?w rdf:type ontology:city }
[]
city
Q293558
SYSTEM
Ózd
Q293558
(Q832951,P19,c(Q515))
action filter_type
action find
entity Q832951
relation P19
type Q515
[ANSWER] is the place of birth of László Bodnár
['Q832951', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q832951 property:P19 ?w . ?w rdf:type ontology:Q515 }
Ózd
Ózd is the place of birth of László Bodnár
Ózd
action filter_type
action find
entity László Bodnár
relation place of birth
type city
['László Bodnár', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:László_Bodnár property:place_of_birth ?w . ?w rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q293558
P1376
Q1162835
USER
Which district of Hungary has that city as its county seat ?
(Q293558,P1376,c(Q1162835))
action filter_type
action find
entity Q293558
relation P1376
type Q1162835
['Q293558', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?s WHERE { resource:Q293558 property:P1376 ?s . ?s rdf:type ontology:Q1162835 }
Ózd
action filter_type
action find
entity Ózd
relation capital of
type district of Hungary
['Ózd', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?s WHERE { resource:Ózd property:capital_of ?s . ?s rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q265020
SYSTEM
Ózd  District
Q265020
(Q293558,P1376,c(Q1162835))
action filter_type
action find
entity Q293558
relation P1376
type Q1162835
District Ózd District has that city as its county seat
['Q293558', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?s WHERE { resource:Q293558 property:P1376 ?s . ?s rdf:type ontology:Q1162835 }
Ózd  District
District Ózd District has that city as its county seat
Ózd  District
action filter_type
action find
entity Ózd
relation capital of
type district of Hungary
['Ózd', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?s WHERE { resource:Ózd property:capital_of ?s . ?s rdf:type ontology:district_of_Hungary }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5106784 Q293558
P27 P17
Q15617994
USER
Which administrative territories do Ózd belong to or do Chris Hargreaves belong to ?
OR((Q293558,P17,c(Q15617994)), (Q5106784,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q293558
relation P17
action find
entity Q5106784
relation P27
type Q15617994
{'OR': [['Q293558', 'P17', {'concept': 'Q15617994'}], ['Q5106784', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q293558 property:P17 ?n } UNION { resource:Q5106784 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Chris Hargreaves Ózd
action filter_type
action union
action find
entity Ózd
relation country
action find
entity Chris Hargreaves
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ózd', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Chris Hargreaves', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Ózd property:country ?n } UNION { resource:Chris_Hargreaves property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28 Q145
SYSTEM
Hungary, United Kingdom
Q28 Q145
OR((Q293558,P17,c(Q15617994)), (Q5106784,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q293558
relation P17
action find
entity Q5106784
relation P27
type Q15617994
Ózd belong to [ANSWERS]
{'OR': [['Q293558', 'P17', {'concept': 'Q15617994'}], ['Q5106784', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q293558 property:P17 ?n } UNION { resource:Q5106784 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Hungary United Kingdom
Ózd belong to Hungary and United Kingdom
Hungary United Kingdom
action filter_type
action union
action find
entity Ózd
relation country
action find
entity Chris Hargreaves
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ózd', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Chris Hargreaves', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Ózd property:country ?n } UNION { resource:Chris_Hargreaves property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4730434
P530
Q15617994
USER
Are Allamoore Independent School District known to have diplomatic connections with those ones ?
(Q4730434,P530,Q28) (Q4730434,P530,Q145)
action is_in
entity prev_answer
action find
entity Q4730434
relation P530
['Q4730434', 'P530', 'Q28'] ['Q4730434', 'P530', 'Q145']
ASK WHERE { resource:Q4730434 property:P530 ?i . VALUES ( ?i ) { ( resource:Q28 ) ( resource:Q145 ) } }
Allamoore Independent School District
action is_in
entity prev_answer
action find
entity Allamoore Independent School District
relation diplomatic relation
['Allamoore Independent School District', 'diplomatic relation', 'Hungary'] ['Allamoore Independent School District', 'diplomatic relation', 'United Kingdom']
ASK WHERE { resource:Allamoore_Independent_School_District property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:Hungary ) ( resource:United_Kingdom ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4730434,P530,Q28) (Q4730434,P530,Q145)
action is_in
entity prev_answer
action find
entity Q4730434
relation P530
[ANSWER]
['Q4730434', 'P530', 'Q28'] ['Q4730434', 'P530', 'Q145']
ASK WHERE { resource:Q4730434 property:P530 ?i . VALUES ( ?i ) { ( resource:Q28 ) ( resource:Q145 ) } }
No
action is_in
entity prev_answer
action find
entity Allamoore Independent School District
relation diplomatic relation
['Allamoore Independent School District', 'diplomatic relation', 'Hungary'] ['Allamoore Independent School District', 'diplomatic relation', 'United Kingdom']
ASK WHERE { resource:Allamoore_Independent_School_District property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:Hungary ) ( resource:United_Kingdom ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q736
P530
Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with approximately the same number of administrative territories as Ecuador ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q736
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { resource:Q736 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?p = ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?f ) AS ?p ) WHERE { ?u property:P530 ?f . ?u rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?u } }
Ecuador
action count
action approx
action find_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
entity Ecuador
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 ( ?u ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { resource:Ecuador property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p = ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?f ) AS ?p ) WHERE { ?u property:diplomatic_relation ?f . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q736
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { resource:Q736 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?p = ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?f ) AS ?p ) WHERE { ?u property:P530 ?f . ?u rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?u } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia 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 Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
148
action count
action approx
action find_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
entity Ecuador
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 ( ?u ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { resource:Ecuador property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p = ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?f ) AS ?p ) WHERE { ?u property:diplomatic_relation ?f . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1030
P530
Q15617994 Q15617994
USER
And also tell me about Namibia?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1030
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?m ) WHERE { ?p property:P530 ?r . ?p rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Q1030 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?m = ?a ) }
Namibia
action count
action approx
action find_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
entity Namibia
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 ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?m ) WHERE { ?p property:diplomatic_relation ?r . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Namibia property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m = ?a ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
147
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1030
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?m ) WHERE { ?p property:P530 ?r . ?p rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Q1030 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?m = ?a ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
147
action count
action approx
action find_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
entity Namibia
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 ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?m ) WHERE { ?p property:diplomatic_relation ?r . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Namibia property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m = ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q29
P495
Q15617994 Q2342494 Q2031291
USER
Which administrative territories are the origins of less number of collectables or releases than Spain ?
(c(Q2342494)|c(Q2031291),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q29
relation P495
type Q2342494
type Q2031291
[[{'concept': 'Q2342494'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?d ) WHERE { { ?w property:P495 ?u . ?w rdf:type ontology:Q2342494 . ?u rdf:type ontology:Q15617994 } UNION { ?w property:P495 ?u . ?u rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q2031291 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:P495 resource:Q29 . { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q2031291 ) } } } } . FILTER ( ?d < ?f ) }
Spain
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Spain
relation country of origin
type collectable
type release
[[{'concept': 'collectable'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?d ) WHERE { { ?w property:country_of_origin ?u . ?w rdf:type ontology:collectable . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?w property:country_of_origin ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:release } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:country_of_origin resource:Spain . { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:collectable ) ( ontology:release ) } } } } . FILTER ( ?d < ?f ) }
[]
designation for an administrative territorial entity collectable release
Q155 Q230 Q159
SYSTEM
Brazil, Georgia, Russia
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 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 Q928 Q39 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 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 Q672 Q176 Q863 Q869 Q953
(c(Q2342494)|c(Q2031291),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q29
relation P495
type Q2342494
type Q2031291
[ANSWERS] are the origins of less number of collectables or releases than Spain
[[{'concept': 'Q2342494'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?d ) WHERE { { ?w property:P495 ?u . ?w rdf:type ontology:Q2342494 . ?u rdf:type ontology:Q15617994 } UNION { ?w property:P495 ?u . ?u rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q2031291 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:P495 resource:Q29 . { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q2031291 ) } } } } . FILTER ( ?d < ?f ) }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands 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 Philippines Switzerland 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 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 Tuvalu Quebec Tajikistan Thailand Zambia
Brazil, Georgia and Russia are the origins of less number of collectables or releases than Spain
Brazil Georgia Russia
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Spain
relation country of origin
type collectable
type release
[[{'concept': 'collectable'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?d ) WHERE { { ?w property:country_of_origin ?u . ?w rdf:type ontology:collectable . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?w property:country_of_origin ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:release } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { ?x property:country_of_origin resource:Spain . { ?x rdf:type ?z . VALUES ( ?z ) { ( ontology:collectable ) ( ontology:release ) } } } } . FILTER ( ?d < ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1036
P495
Q15617994 Q2342494 Q2031291
USER
And also tell me about Uganda?
(c(Q2342494)|c(Q2031291),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q1036
relation P495
type Q2342494
type Q2031291
[[{'concept': 'Q2342494'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?h ) { ( ontology:Q2342494 ) ( ontology:Q2031291 ) } . ?v rdf:type ?h } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { { ?r rdf:type ontology:Q2342494 } UNION { ?r rdf:type ontology:Q2031291 } } . ?r property:P495 resource:Q1036 } } . FILTER ( ?q < ?d ) }
Uganda
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Uganda
relation country of origin
type collectable
type release
[[{'concept': 'collectable'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?h ) { ( ontology:collectable ) ( ontology:release ) } . ?v rdf:type ?h } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { { ?r rdf:type ontology:collectable } UNION { ?r rdf:type ontology:release } } . ?r property:country_of_origin resource:Uganda } } . FILTER ( ?q < ?d ) }
[]
designation for an administrative territorial entity collectable release
Q953 Q184 Q32
SYSTEM
Zambia, Belarus, Luxembourg
Q805 Q804 Q800 Q1462 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q1460 Q398 Q403 Q657 Q792 Q790 Q4628 Q796 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q242 Q244 Q811 Q153136 Q32 Q924 Q423 Q983 Q851 Q733 Q29999 Q819 Q424 Q730 Q1013 Q159626 Q236 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q921 Q1049 Q1025 Q1027 Q1020 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q223 Q221 Q229 Q347 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q962 Q963 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q2342494)|c(Q2031291),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q1036
relation P495
type Q2342494
type Q2031291
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?h ) { ( ontology:Q2342494 ) ( ontology:Q2031291 ) } . ?v rdf:type ?h } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { { ?r rdf:type ontology:Q2342494 } UNION { ?r rdf:type ontology:Q2031291 } } . ?r property:P495 resource:Q1036 } } . FILTER ( ?q < ?d ) }
Yemen Panama Costa Rica Sardinia Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Sicily Bahrain Serbia Chad El Salvador Haiti Faroe Islands Iraq Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Laos Cambodia Suriname Lesotho Württemberg Montenegro Kazakhstan Malta San Marino Somalia Sierra Leone Senegal Brunei Sudan Mauritania Mauritius Malawi Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Greenland Republic of Macedonia Cyprus Liechtenstein Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Benin Botswana Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia 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 Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
Zambia Belarus Luxembourg
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Uganda
relation country of origin
type collectable
type release
[[{'concept': 'collectable'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?h ) { ( ontology:collectable ) ( ontology:release ) } . ?v rdf:type ?h } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { { ?r rdf:type ontology:collectable } UNION { ?r rdf:type ontology:release } } . ?r property:country_of_origin resource:Uganda } } . FILTER ( ?q < ?d ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q953
P183
Q16521
USER
Which taxon is endemic to Zambia ?
(c(Q16521),P183,Q953)
action filter_type
action find_reverse
entity Q953
relation P183
type Q16521
[{'concept': 'Q16521'}, 'P183', 'Q953']
SELECT DISTINCT ?q WHERE { ?q property:P183 resource:Q953 . ?q rdf:type ontology:Q16521 }
Zambia
action filter_type
action find_reverse
entity Zambia
relation endemic to
type taxon
[{'concept': 'taxon'}, 'endemic to', 'Zambia']
SELECT DISTINCT ?q WHERE { ?q property:endemic_to resource:Zambia . ?q rdf:type ontology:taxon }
[]
taxon
Q15152734
SYSTEM
Doryphoribius niedbalai
Q15152734
(c(Q16521),P183,Q953)
action filter_type
action find_reverse
entity Q953
relation P183
type Q16521
Zambia [ANSWER] is endemic to Zambia
[{'concept': 'Q16521'}, 'P183', 'Q953']
SELECT DISTINCT ?q WHERE { ?q property:P183 resource:Q953 . ?q rdf:type ontology:Q16521 }
Doryphoribius niedbalai
Zambia Doryphoribius niedbalai is endemic to Zambia
Doryphoribius niedbalai
action filter_type
action find_reverse
entity Zambia
relation endemic to
type taxon
[{'concept': 'taxon'}, 'endemic to', 'Zambia']
SELECT DISTINCT ?q WHERE { ?q property:endemic_to resource:Zambia . ?q rdf:type ontology:taxon }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6454754 Q230
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Georgia and are Kırımini, Ağaçören situated in ?
AND((Q230,P530,c(Q15617994)), (Q6454754,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q230
relation P530
action find
entity Q6454754
relation P17
type Q15617994
{'AND': [['Q230', 'P530', {'concept': 'Q15617994'}], ['Q6454754', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q230 property:P530 ?j . resource:Q6454754 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Kırımini, Ağaçören Georgia
action filter_type
action intersection
action find
entity Georgia
relation diplomatic relation
action find
entity Kırımini, Ağaçören
relation country
type designation for an administrative territorial entity
{'AND': [['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Kırımini, Ağaçören', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Georgia property:diplomatic_relation ?j . resource:Kırımini,_Ağaçören property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43
SYSTEM
Turkey
Q43
AND((Q230,P530,c(Q15617994)), (Q6454754,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q230
relation P530
action find
entity Q6454754
relation P17
type Q15617994
[ANSWER] have diplomatic relationships with Georgia and are Kırımini, Ağaçören situated in
{'AND': [['Q230', 'P530', {'concept': 'Q15617994'}], ['Q6454754', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q230 property:P530 ?j . resource:Q6454754 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Turkey
Turkey have diplomatic relationships with Georgia and are Kırımini, Ağaçören situated in
Turkey
action filter_type
action intersection
action find
entity Georgia
relation diplomatic relation
action find
entity Kırımini, Ağaçören
relation country
type designation for an administrative territorial entity
{'AND': [['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Kırımini, Ağaçören', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Georgia property:diplomatic_relation ?j . resource:Kırımini,_Ağaçören property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]