Simple Question (Direct)
Simple Question
Q7358781
P641
Q349
USER
What was the sport that Roger Peters was a part of ?
(Q7358781,P641,c(Q349))
action filter_type
action find
entity Q7358781
relation P641
type Q349
['Q7358781', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q7358781 property:P641 ?b . ?b rdf:type ontology:Q349 }
Roger Peters
action filter_type
action find
entity Roger Peters
relation sport
type sport
['Roger Peters', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Roger_Peters property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7358781,P641,c(Q349))
action filter_type
action find
entity Q7358781
relation P641
type Q349
The sport that Roger Peters was a part of was [ANSWER]
['Q7358781', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q7358781 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football
The sport that Roger Peters was a part of was association football
association football
action filter_type
action find
entity Roger Peters
relation sport
type sport
['Roger Peters', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Roger_Peters property:sport ?b . ?b rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7358781
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q7358781
relation P27
type Q15617994
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q7358781 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Roger Peters
action filter_type
action find
entity Roger Peters
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Roger_Peters property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q7358781
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q7358781 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of that person
United Kingdom
action filter_type
action find
entity Roger Peters
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Roger_Peters property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q145
P291
Q571 Q2342494
USER
How many books or collectables were published in United Kingdom ?
(c(Q571),P291,Q145) (c(Q2342494),P291,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P291
type Q571
action filter_type
action find_reverse
entity Q145
relation P291
type Q2342494
[{'concept': 'Q571'}, 'P291', 'Q145'] [{'concept': 'Q2342494'}, 'P291', 'Q145']
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { ?o property:P291 resource:Q145 . ?o rdf:type ontology:Q571 } UNION { ?o property:P291 resource:Q145 . ?o rdf:type ontology:Q2342494 } }
United Kingdom
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation place of publication
type book
action filter_type
action find_reverse
entity United Kingdom
relation place of publication
type collectable
[{'concept': 'book'}, 'place of publication', 'United Kingdom'] [{'concept': 'collectable'}, 'place of publication', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { ?o property:place_of_publication resource:United_Kingdom . ?o rdf:type ontology:book } UNION { ?o property:place_of_publication resource:United_Kingdom . ?o rdf:type ontology:collectable } }
[]
book collectable
SYSTEM
3
Q2120111 Q20897974 Q20757790
(c(Q571),P291,Q145) (c(Q2342494),P291,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P291
type Q571
action filter_type
action find_reverse
entity Q145
relation P291
type Q2342494
[ANSWER]
[{'concept': 'Q571'}, 'P291', 'Q145'] [{'concept': 'Q2342494'}, 'P291', 'Q145']
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { ?o property:P291 resource:Q145 . ?o rdf:type ontology:Q571 } UNION { ?o property:P291 resource:Q145 . ?o rdf:type ontology:Q2342494 } }
Tales from Watership Down The Little Prince (1975 BCA edition) Marco Polo's Book
3
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation place of publication
type book
action filter_type
action find_reverse
entity United Kingdom
relation place of publication
type collectable
[{'concept': 'book'}, 'place of publication', 'United Kingdom'] [{'concept': 'collectable'}, 'place of publication', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { { ?o property:place_of_publication resource:United_Kingdom . ?o rdf:type ontology:book } UNION { ?o property:place_of_publication resource:United_Kingdom . ?o rdf:type ontology:collectable } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P463
Q484652
USER
Which organizations were that administrative territory a member of ?
action filter_type
action find
entity Q145
relation P463
type Q484652
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q484652 . resource:Q145 property:P463 ?w }
United Kingdom
action filter_type
action find
entity United Kingdom
relation member of
type international organization
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:international_organization . resource:United_Kingdom property:member_of ?w }
[]
international organization
Q81299 Q19771 Q42262
SYSTEM
Organization for Security and Co-operation in Europe, G20, European Space Agency
Q81299 Q19771 Q7785 Q1065 Q188822 Q37143 Q7184 Q42262 Q1043527
action filter_type
action find
entity Q145
relation P463
type Q484652
[ANSWERS] were that administrative territory a member of
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q484652 . resource:Q145 property:P463 ?w }
Organization for Security and Co-operation in Europe G20 Commonwealth of Nations United Nations Asian Development Bank G8 North Atlantic Treaty Organisation European Space Agency Multilateral Investment Guarantee Agency
Organization for Security and Co-operation in Europe, G20 and European Space Agency were that administrative territory a member of
Organization for Security and Co-operation in Europe G20 European Space Agency
action filter_type
action find
entity United Kingdom
relation member of
type international organization
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:international_organization . resource:United_Kingdom property:member_of ?w }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1011
P495
Q15617994 Q15416 Q838948
USER
Which administrative territories are the origins of less number of television programs and works of art than Cape Verde ?
(c(Q15416)|c(Q838948),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1011
relation P495
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?e ) WHERE { VALUES ( ?i ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?t rdf:type ?i } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:P495 resource:Q1011 . { { ?p rdf:type ontology:Q15416 } UNION { ?p rdf:type ontology:Q838948 } } } } . FILTER ( ?e < ?r ) }
Cape Verde
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Cape Verde
relation country of origin
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?e ) WHERE { VALUES ( ?i ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?t rdf:type ?i } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:country_of_origin resource:Cape_Verde . { { ?p rdf:type ontology:television_program } UNION { ?p rdf:type ontology:work_of_art } } } } . FILTER ( ?e < ?r ) }
[]
designation for an administrative territorial entity television program work of art
Q953 Q347 Q805
SYSTEM
Zambia, Liechtenstein, Yemen
Q805 Q1462 Q12536 Q783 Q36678 Q712 Q1460 Q792 Q4628 Q958 Q986 Q242 Q244 Q153136 Q924 Q983 Q29999 Q819 Q730 Q1013 Q159626 Q238 Q1045 Q1044 Q1049 Q1025 Q1020 Q223 Q347 Q1030 Q967 Q962 Q963 Q916 Q1007 Q1006 Q1005 Q971 Q970 Q239502 Q686 Q574 Q874 Q1014 Q1016 Q945 Q672 Q176 Q953
(c(Q15416)|c(Q838948),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1011
relation P495
type Q15416
type Q838948
[ANSWERS] are the origins of less number of television programs and works of art than Cape Verde
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?e ) WHERE { VALUES ( ?i ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?t rdf:type ?i } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:P495 resource:Q1011 . { { ?p rdf:type ontology:Q15416 } UNION { ?p rdf:type ontology:Q838948 } } } } . FILTER ( ?e < ?r ) }
Yemen Sardinia Abbasid caliphate Honduras West Bank Fiji Sicily El Salvador Faroe Islands South Sudan Eritrea Belize Barbados Habsburg Empire Tanzania Equatorial Guinea Kingdom of the Netherlands Laos Suriname Lesotho Württemberg San Marino Somalia Sierra Leone Sudan Mauritania Malawi Greenland Liechtenstein Namibia Burundi Benin Botswana Angola Guinea-Bissau Guinea Gambia Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu East Timor Turkmenistan Liberia Libya Togo Tuvalu Quebec Zambia
Zambia, Liechtenstein and Yemen are the origins of less number of television programs and works of art than Cape Verde
Zambia Liechtenstein Yemen
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Cape Verde
relation country of origin
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?e ) WHERE { VALUES ( ?i ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?t rdf:type ?i } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:country_of_origin resource:Cape_Verde . { { ?p rdf:type ontology:television_program } UNION { ?p rdf:type ontology:work_of_art } } } } . FILTER ( ?e < ?r ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P463
Q56061 Q180684
USER
How many administrative territories and conflicts were that administrative territory a member of ?
(Q805,P463,c(Q56061)) (Q805,P463,c(Q180684)) (Q953,P463,c(Q56061)) (Q953,P463,c(Q180684)) (Q347,P463,c(Q56061)) (Q347,P463,c(Q180684)) (Q805,P463,c(Q56061)) (Q805,P463,c(Q180684))
['Q805', 'P463', {'concept': 'Q56061'}] ['Q805', 'P463', {'concept': 'Q180684'}] ['Q953', 'P463', {'concept': 'Q56061'}] ['Q953', 'P463', {'concept': 'Q180684'}] ['Q347', 'P463', {'concept': 'Q56061'}] ['Q347', 'P463', {'concept': 'Q180684'}] ['Q805', 'P463', {'concept': 'Q56061'}] ['Q805', 'P463', {'concept': 'Q180684'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q805 property:P463 ?z } UNION { resource:Q805 property:P463 ?y } UNION { resource:Q953 property:P463 ?z } UNION { resource:Q953 property:P463 ?y } UNION { resource:Q237517 property:P463 ?z } UNION { resource:Q237517 property:P463 ?y } UNION { resource:Q805 property:P463 ?z } UNION { resource:Q805 property:P463 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q4231815 }
['Yemen', 'member of', {'concept': 'administrative territorial entity'}] ['Yemen', 'member of', {'concept': 'conflict'}] ['Zambia', 'member of', {'concept': 'administrative territorial entity'}] ['Zambia', 'member of', {'concept': 'conflict'}] ['Liechtenstein', 'member of', {'concept': 'administrative territorial entity'}] ['Liechtenstein', 'member of', {'concept': 'conflict'}] ['Yemen', 'member of', {'concept': 'administrative territorial entity'}] ['Yemen', 'member of', {'concept': 'conflict'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Yemen property:member_of ?z } UNION { resource:Yemen property:member_of ?y } UNION { resource:Zambia property:member_of ?z } UNION { resource:Zambia property:member_of ?y } UNION { resource:Liechtenstein property:member_of ?z } UNION { resource:Liechtenstein property:member_of ?y } UNION { resource:Yemen property:member_of ?z } UNION { resource:Yemen property:member_of ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:conflict }
[]
administrative territorial entity conflict
Quantitative|Count|Mult. entity type|Clarification
Q805
SYSTEM
Did you mean Yemen ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q805 property:P463 ?z } UNION { resource:Q805 property:P463 ?y } UNION { resource:Q953 property:P463 ?z } UNION { resource:Q953 property:P463 ?y } UNION { resource:Q237517 property:P463 ?z } UNION { resource:Q237517 property:P463 ?y } UNION { resource:Q805 property:P463 ?z } UNION { resource:Q805 property:P463 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q4231815 }
Did you mean Yemen ?
Yemen
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Yemen property:member_of ?z } UNION { resource:Yemen property:member_of ?y } UNION { resource:Zambia property:member_of ?z } UNION { resource:Zambia property:member_of ?y } UNION { resource:Liechtenstein property:member_of ?z } UNION { resource:Liechtenstein property:member_of ?y } UNION { resource:Yemen property:member_of ?z } UNION { resource:Yemen property:member_of ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:conflict }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q805,P463,c(Q56061)) (Q805,P463,c(Q180684)) (Q953,P463,c(Q56061)) (Q953,P463,c(Q180684)) (Q347,P463,c(Q56061)) (Q347,P463,c(Q180684)) (Q805,P463,c(Q56061)) (Q805,P463,c(Q180684))
['Q805', 'P463', {'concept': 'Q56061'}] ['Q805', 'P463', {'concept': 'Q180684'}] ['Q953', 'P463', {'concept': 'Q56061'}] ['Q953', 'P463', {'concept': 'Q180684'}] ['Q347', 'P463', {'concept': 'Q56061'}] ['Q347', 'P463', {'concept': 'Q180684'}] ['Q805', 'P463', {'concept': 'Q56061'}] ['Q805', 'P463', {'concept': 'Q180684'}]
['Yemen', 'member of', {'concept': 'administrative territorial entity'}] ['Yemen', 'member of', {'concept': 'conflict'}] ['Zambia', 'member of', {'concept': 'administrative territorial entity'}] ['Zambia', 'member of', {'concept': 'conflict'}] ['Liechtenstein', 'member of', {'concept': 'administrative territorial entity'}] ['Liechtenstein', 'member of', {'concept': 'conflict'}] ['Yemen', 'member of', {'concept': 'administrative territorial entity'}] ['Yemen', 'member of', {'concept': 'conflict'}]
[]
SYSTEM
1 administrative territories and 1 conflicts
Q384535 Q7172
(Q805,P463,c(Q56061)) (Q805,P463,c(Q180684)) (Q953,P463,c(Q56061)) (Q953,P463,c(Q180684)) (Q347,P463,c(Q56061)) (Q347,P463,c(Q180684)) (Q805,P463,c(Q56061)) (Q805,P463,c(Q180684))
[ANSWER]
['Q805', 'P463', {'concept': 'Q56061'}] ['Q805', 'P463', {'concept': 'Q180684'}] ['Q953', 'P463', {'concept': 'Q56061'}] ['Q953', 'P463', {'concept': 'Q180684'}] ['Q347', 'P463', {'concept': 'Q56061'}] ['Q347', 'P463', {'concept': 'Q180684'}] ['Q805', 'P463', {'concept': 'Q56061'}] ['Q805', 'P463', {'concept': 'Q180684'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q805 property:P463 ?z } UNION { resource:Q805 property:P463 ?y } UNION { resource:Q953 property:P463 ?z } UNION { resource:Q953 property:P463 ?y } UNION { resource:Q237517 property:P463 ?z } UNION { resource:Q237517 property:P463 ?y } UNION { resource:Q805 property:P463 ?z } UNION { resource:Q805 property:P463 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q4231815 }
African Union – United Nations Hybrid Operation in Darfur Arab League
1 administrative territories and 1 conflicts
['Yemen', 'member of', {'concept': 'administrative territorial entity'}] ['Yemen', 'member of', {'concept': 'conflict'}] ['Zambia', 'member of', {'concept': 'administrative territorial entity'}] ['Zambia', 'member of', {'concept': 'conflict'}] ['Liechtenstein', 'member of', {'concept': 'administrative territorial entity'}] ['Liechtenstein', 'member of', {'concept': 'conflict'}] ['Yemen', 'member of', {'concept': 'administrative territorial entity'}] ['Yemen', 'member of', {'concept': 'conflict'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Yemen property:member_of ?z } UNION { resource:Yemen property:member_of ?y } UNION { resource:Zambia property:member_of ?z } UNION { resource:Zambia property:member_of ?y } UNION { resource:Liechtenstein property:member_of ?z } UNION { resource:Liechtenstein property:member_of ?y } UNION { resource:Yemen property:member_of ?z } UNION { resource:Yemen property:member_of ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:conflict }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q819
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with lesser number of administrative territories than Laos ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q819
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?c < ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Q819 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?c ) WHERE { ?n property:P530 ?w . ?n rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } GROUP BY ?n } }
Laos
action less
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 Laos
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 ?n WHERE { FILTER ( ?c < ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Laos property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?c ) WHERE { ?n property:diplomatic_relation ?w . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q819
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with lesser number of administrative territories than Laos
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?c < ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Q819 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?c ) WHERE { ?n property:P530 ?w . ?n rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } GROUP BY ?n } }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan hold diplomatic relationship with lesser number of administrative territories than Laos
Central African Republic Kingdom of the Netherlands Kazakhstan
action less
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 Laos
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 ?n WHERE { FILTER ( ?c < ?k ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Laos property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?c ) WHERE { ?n property:diplomatic_relation ?w . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q20
P530
Q15617994 Q15617994
USER
And how about Norway?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q20
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?v ) WHERE { ?e rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?p property:P530 ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Q20 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?v < ?c ) }
Norway
action less
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 Norway
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 ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?v ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Norway property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v < ?c ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q20
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?v ) WHERE { ?e rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?p property:P530 ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Q20 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?v < ?c ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic Kingdom of the Netherlands Kazakhstan
action less
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 Norway
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 ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?v ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Norway property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v < ?c ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q232
P610
Q14524493
USER
Which is the highest peak of Kazakhstan ?
(Q232,P610,c(Q14524493))
action filter_type
action find
entity Q232
relation P610
type Q14524493
['Q232', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q14524493 . resource:Q232 property:P610 ?f }
Kazakhstan
action filter_type
action find
entity Kazakhstan
relation highest point
type terrain
['Kazakhstan', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:terrain . resource:Kazakhstan property:highest_point ?f }
[]
terrain
Q211529
SYSTEM
Khan Tengri
Q211529
(Q232,P610,c(Q14524493))
action filter_type
action find
entity Q232
relation P610
type Q14524493
The highest peak of Kazakhstan is [ANSWER]
['Q232', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q14524493 . resource:Q232 property:P610 ?f }
Khan Tengri
The highest peak of Kazakhstan is Khan Tengri
Khan Tengri
action filter_type
action find
entity Kazakhstan
relation highest point
type terrain
['Kazakhstan', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:terrain . resource:Kazakhstan property:highest_point ?f }
[]