Simple Question (Direct)
Simple Question
Q1596910
P102
Q7210356
USER
Which party is Heinrich Büttner affiliated with ?
(Q1596910,P102,c(Q7210356))
action filter_type
action find
entity Q1596910
relation P102
type Q7210356
['Q1596910', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q7210356 . resource:Q1596910 property:P102 ?z }
Heinrich Büttner
action filter_type
action find
entity Heinrich Büttner
relation member of political party
type political organization
['Heinrich Büttner', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:political_organization . resource:Heinrich_Büttner property:member_of_political_party ?z }
[]
political organization
Q7320
SYSTEM
Nazi Party
Q7320
(Q1596910,P102,c(Q7210356))
action filter_type
action find
entity Q1596910
relation P102
type Q7210356
Heinrich Büttner is affiliated with [ANSWER]
['Q1596910', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q7210356 . resource:Q1596910 property:P102 ?z }
Nazi Party
Heinrich Büttner is affiliated with Nazi Party
Nazi Party
action filter_type
action find
entity Heinrich Büttner
relation member of political party
type political organization
['Heinrich Büttner', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:political_organization . resource:Heinrich_Büttner property:member_of_political_party ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1596910
P27
Q1048835
USER
Which political territory is the country of citizenship of that person ?
(Q7320,P27,c(Q1048835))
action filter_type
action find
entity Q1596910
relation P27
type Q1048835
['Q7320', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q1596910 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Heinrich Büttner
action filter_type
action find
entity Heinrich Büttner
relation country of citizenship
type political territorial entity
['Nazi Party', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Heinrich_Büttner property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q7320,P27,c(Q1048835))
action filter_type
action find
entity Q1596910
relation P27
type Q1048835
[ANSWER] is the country of citizenship of that person
['Q7320', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q1596910 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Germany
Germany is the country of citizenship of that person
Germany
action filter_type
action find
entity Heinrich Büttner
relation country of citizenship
type political territorial entity
['Nazi Party', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Heinrich_Büttner property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1596910
P19
Q515
USER
How many cities are the birthplace of Heinrich Büttner ?
(Q1596910,P19,c(Q515))
action count
action filter_type
action find
entity Q1596910
relation P19
type Q515
['Q1596910', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Q1596910 property:P19 ?y . ?y rdf:type ontology:Q515 }
Heinrich Büttner
action count
action filter_type
action find
entity Heinrich Büttner
relation place of birth
type city
['Heinrich Büttner', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Heinrich_Büttner property:place_of_birth ?y . ?y rdf:type ontology:city }
[]
city
SYSTEM
1
Q1720
(Q1596910,P19,c(Q515))
action count
action filter_type
action find
entity Q1596910
relation P19
type Q515
[ANSWER]
['Q1596910', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Q1596910 property:P19 ?y . ?y rdf:type ontology:Q515 }
Mainz
1
action count
action filter_type
action find
entity Heinrich Büttner
relation place of birth
type city
['Heinrich Büttner', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { resource:Heinrich_Büttner property:place_of_birth ?y . ?y rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1454549
Q515
USER
And also tell me about Karlheinz Dietz?
(Q1454549,P19,c(Q515))
action count
action filter_type
action find
entity Q1454549
relation P19
type Q515
['Q1454549', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Q1454549 property:P19 ?i . ?i rdf:type ontology:Q515 }
Karlheinz Dietz
action count
action filter_type
action find
entity Karlheinz Dietz
relation place of birth
type city
['Karlheinz Dietz', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Karlheinz_Dietz property:place_of_birth ?i . ?i rdf:type ontology:city }
[]
city
SYSTEM
1
(Q1454549,P19,c(Q515))
action count
action filter_type
action find
entity Q1454549
relation P19
type Q515
[ANSWER]
['Q1454549', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Q1454549 property:P19 ?i . ?i rdf:type ontology:Q515 }
1
action count
action filter_type
action find
entity Karlheinz Dietz
relation place of birth
type city
['Karlheinz Dietz', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Karlheinz_Dietz property:place_of_birth ?i . ?i rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relationships with exactly 3 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?q ) WHERE { ?r property:P530 ?p . ?r rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?q = 3 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?q ) WHERE { ?r property:diplomatic_relation ?p . ?r rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?q = 3 ) }
[]
political territorial entity political territorial entity
SYSTEM
2
Q35 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?q ) WHERE { ?r property:P530 ?p . ?r rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?q = 3 ) }
Denmark New Zealand
2
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?q ) WHERE { ?r property:diplomatic_relation ?p . ?r rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?q = 3 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q672
P463
Q43229
USER
How many organizations were Germany and Tuvalu a member of ?
(Q183,P463,c(Q43229)) (Q672,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q183
relation P463
type Q43229
action filter_type
action find
entity Q672
relation P463
type Q43229
['Q183', 'P463', {'concept': 'Q43229'}] ['Q672', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:Q43229 . resource:Q183 property:P463 ?u . ?u rdf:type ontology:Q43229 . resource:Q672 property:P463 ?u }
Germany Tuvalu
action count
action intersection
action filter_type
action find
entity Germany
relation member of
type organization
action filter_type
action find
entity Tuvalu
relation member of
type organization
['Germany', 'member of', {'concept': 'organization'}] ['Tuvalu', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:organization . resource:Germany property:member_of ?u . ?u rdf:type ontology:organization . resource:Tuvalu property:member_of ?u }
[]
organization
SYSTEM
2
Q191384 Q827525
(Q183,P463,c(Q43229)) (Q672,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q183
relation P463
type Q43229
action filter_type
action find
entity Q672
relation P463
type Q43229
[ANSWER]
['Q183', 'P463', {'concept': 'Q43229'}] ['Q672', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:Q43229 . resource:Q183 property:P463 ?u . ?u rdf:type ontology:Q43229 . resource:Q672 property:P463 ?u }
International Bank for Reconstruction and Development International Development Association
2
action count
action intersection
action filter_type
action find
entity Germany
relation member of
type organization
action filter_type
action find
entity Tuvalu
relation member of
type organization
['Germany', 'member of', {'concept': 'organization'}] ['Tuvalu', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:organization . resource:Germany property:member_of ?u . ?u rdf:type ontology:organization . resource:Tuvalu property:member_of ?u }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q224
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with more number of political territories than Croatia ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q224
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?t ) WHERE { ?a property:P530 ?w . ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:Q15617994 . resource:Q224 property:P530 ?b } } . FILTER ( ?t > ?y ) }
Croatia
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Croatia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?t ) WHERE { ?a property:diplomatic_relation ?w . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Croatia property:diplomatic_relation ?b } } . FILTER ( ?t > ?y ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q224
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with more number of political territories than Croatia
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?t ) WHERE { ?a property:P530 ?w . ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:Q15617994 . resource:Q224 property:P530 ?b } } . FILTER ( ?t > ?y ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
Italy, Brazil and United States of America have a diplomatic relationship with more number of political territories than Croatia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Croatia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?t ) WHERE { ?a property:diplomatic_relation ?w . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Croatia property:diplomatic_relation ?b } } . FILTER ( ?t > ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q145
P530
Q15617994 Q1048835
USER
And how about United Kingdom?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q145
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?n ) WHERE { ?z rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 . ?z property:P530 ?j } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Q145 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?n > ?v ) }
United Kingdom
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?n ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?j } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:United_Kingdom property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?n > ?v ) }
[]
designation for an administrative territorial entity political territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q145
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?n ) WHERE { ?z rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 . ?z property:P530 ?j } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:Q145 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?n > ?v ) }
Brazil Italy
Brazil Italy
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity United Kingdom
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?j ) AS ?n ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity . ?z property:diplomatic_relation ?j } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { resource:United_Kingdom property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?n > ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q5065
P206
Q1267889 Q15324 Q1048835
USER
Which political territories are located nearby lesser number of waterways and bodies of water than Central Sulawesi Province ?
(c(Q1048835),P206,c(Q1267889)|c(Q15324))
action less
action union
action find_tuple_counts
relation P206
type Q1048835
type Q1267889
action find_tuple_counts
relation P206
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q5065
relation P206
type Q1267889
type Q15324
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?a WHERE { VALUES ( ?k ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } . ?r rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Q5065 property:P206 ?v . { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } } } } . FILTER ( ?t < ?b ) }
Central Sulawesi Province
action less
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Central Sulawesi Province
relation located next to body of water
type waterway
type body of water
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?a WHERE { VALUES ( ?k ) { ( ontology:waterway ) ( ontology:body_of_water ) } . ?r rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Central_Sulawesi_Province property:located_next_to_body_of_water ?v . { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:waterway ) ( ontology:body_of_water ) } } } } . FILTER ( ?t < ?b ) }
[]
waterway body of water political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1649616 Q736872 Q434192 Q691567 Q1228773 Q21590062 Q657407 Q434053 Q782910 Q1447512 Q1628271 Q2044159 Q49562 Q844784 Q2012050 Q52626 Q677038 Q540185 Q484552 Q433632 Q1614800 Q1470810 Q492312 Q7206212 Q983556 Q193780 Q635308 Q741749 Q5067 Q983465 Q2772 Q4359878 Q353618 Q4524665 Q18356359 Q983628 Q147774 Q846153 Q217829 Q925913 Q7451347 Q830969 Q846159 Q1324548 Q40 Q962773 Q5095 Q12071 Q985601 Q615809 Q565002 Q1905388 Q16 Q390069 Q18350152 Q11339 Q55845 Q3557 Q210887 Q804466 Q2323549 Q594892 Q582901 Q5096 Q898856 Q1853429 Q4408930 Q587114 Q434321 Q492420 Q11492 Q11263 Q915283 Q11294004 Q4321529 Q661198 Q741765 Q35 Q5017377 Q985598 Q917886 Q1617562 Q493933 Q913483 Q572542 Q13148 Q13149 Q6674900 Q7521776 Q716384 Q499184 Q616847 Q13462 Q986364 Q1637424 Q956757 Q1443906 Q1798827 Q2244278 Q693258 Q736926 Q13751 Q433918 Q434019 Q986359 Q575670 Q847329 Q817971 Q926410 Q1768232 Q698246 Q16851746 Q15907 Q624967 Q1606460 Q1634820 Q832984 Q11286 Q1447802 Q13150 Q913492 Q1628788 Q13154 Q217840 Q7130989 Q100166 Q176624 Q2451327 Q24342199 Q11811 Q163271 Q5437809 Q426350 Q738674 Q7165 Q983433 Q524431 Q985586 Q1443992 Q1248474 Q11296 Q1631163 Q13424648 Q277302 Q628446 Q1637406 Q743849 Q366948 Q492741 Q650682 Q748078 Q11822 Q932914 Q492748 Q4481 Q904566 Q1645555 Q434150 Q5939706 Q944264 Q943431 Q920391 Q3903 Q399702 Q4673688 Q491786 Q2140 Q3724 Q985599 Q983635 Q1391437 Q18359182 Q706892 Q171334 Q615061 Q847127 Q5616614 Q953876 Q3741 Q657800 Q47134 Q638013 Q492737 Q433958 Q492735 Q1588135 Q1623000 Q18357018 Q4469165 Q827393 Q505610 Q11304 Q1260011 Q607474 Q737440 Q657738 Q3891 Q584446 Q427330 Q682964 Q171852 Q1607872 Q2110 Q18351821 Q433986 Q501077 Q80967 Q936264 Q994034 Q586584 Q983577 Q42314 Q611250 Q615916 Q986727 Q181633 Q7684726 Q643919 Q487268 Q5197069 Q207176 Q736888 Q824076 Q175057 Q398588 Q1110355 Q434173 Q575639 Q597201 Q6298722 Q434286 Q697126 Q594961 Q613832 Q491929 Q947285
(c(Q1048835),P206,c(Q1267889)|c(Q15324))
action less
action union
action find_tuple_counts
relation P206
type Q1048835
type Q1267889
action find_tuple_counts
relation P206
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q5065
relation P206
type Q1267889
type Q15324
[ANSWERS] are located nearby lesser number of waterways and bodies of water than Central Sulawesi Province
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?a WHERE { VALUES ( ?k ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } . ?r rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Q5065 property:P206 ?v . { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } } } } . FILTER ( ?t < ?b ) }
Orio Ayamonte San Andrés y Sauces Les Dirouilles Plentzia Antarctic Treaty area Sopela Garafía El Sauzal Chantada Soutomaior Llanybydder Adra Vale of Glamorgan Donetsk Oblast Formentera San Miguel de Abona Puerto del Rosario Algeciras Santa Cruz de La Palma Val de San Vicente Pierres de Lecq Hondarribia Poblacion La Guancha Almuñécar Vallehermoso, Santa Cruz de Tenerife Chipiona Gorontalo Province Santa Eulària des Riu West Sumatra Pisocine Adeje Szychtory Manipulon Sant Joan de Labritja Zarautz San Roque Ceredigion Los Barrios Sentinela Betancuria Puerto Real El Pinar, Canary Islands Austria San Bartolomé, Las Palmas Papua Vilassar de Mar La Victoria de Acentejo Sorvilán Albuñol L'Alcúdia de Crespins Canada Agaete Loguingot Llançà Telde Central Java Province Sanlúcar de Barrameda Bakio Yaiza, Las Palmas La Oliva Lújar West Papua Jethou Valverde Sasiv Itamaracá Villa de Mazo Getxo Mataró Cadaqués Santiago del Teide Newport City Nuśmice Pájara San Fernando Denmark Cagting Moya, Las Palmas Santurtzi Nigrán El Ejido Casares Icod de los Vinos La Línea de la Concepción Nerja Looc, Mandaue Sinandigan Arucas, Las Palmas Roquetas de Mar Ribamontán al Mar Begur San Juan de la Rambla, Santa Cruz de Tenerife Miengo Gáldar, Las Palmas Arnuero La Frontera Tías, Las Palmas San Bartolomé de Tirajana Isla Cristina Biliran Barlovento, Santa Cruz de Tenerife Fuencaliente Santa María de Guía de Gran Canaria Antigua, Fuerteventura Comillas Conwy County Borough Algarrobo Trillo Arona, Tenerife Caparangasan Rota Arafo Malpica de Tajo Barreiros Conil de la Frontera Castelló d'Empúries Noja Torrox Manilva El Puente del Arzobispo Barbate Carmarthenshire Pangpang Orkney Islands El Rosario, Tenerife Sé City and County of Cardiff El Port de la Selva Kherson Oblast Fatima Tazacorte Santa Lucía de Tirajana Portbou Güímar Fasnia Tuineje, Las Palmas Bareyo Rincón de la Victoria Colera Aia Troitske Chiclana de la Frontera Mogán, Las Palmas Ruiloba Valdáliga Los Llanos de Aridane Vélez-Málaga Denbighshire Neath Port Talbot County Borough Roses Alajeró, Santa Cruz de Tenerife Estepona Barrika Brecqhou Liendo Puntagorda Humayhumay Tacoronte, Santa Cruz de Tenerife Granadilla de Abona La Orotava North Kalimantan Agüimes, Las Palmas Achila Calvià North Sumatra Province West Java Province Ingenio, Las Palmas Sant Josep de sa Talaia Alfoz de Lloredo Botlog Island Artenara, Las Palmas Zaporizhzhya Oblast Rubite Pasaia Guintabo-an Los Realejos Special Region of Yogyakarta Santa Úrsula Shetland Tinajo, Las Palmas Torremolinos Breña Alta Fuengirola Haría, Las Palmas Piélagos Bayas Island Uhrynów Vejer de la Frontera Flintshire L'Escala Hermigua Muskiz Teguise Arico Kalimantan Tengah Valle Gran Rey Salobreña Los Silos Odessa Oblast Piedralaves Lampung Province Malangabang Breña Baja Lepe Outer Hebrides Lemoiz Variazh Nînovîci, La Matanza de Acentejo Channel Islands Polopos Vasilivka La Aldea de San Nicolás Mykolaiv Oblast Tapon Torfaen County Borough Candelaria Cuya Monmouthshire Punta Umbría Ribadeo Fernando de Noronha Agulo Níjar Puntallana Gualchos Lake of the Woods, Ontario Juagdan Tijarafe Bridgend County Borough Buenavista del Norte Mañón Berja Enix, Spain
Denmark, Canada and Austria are located nearby lesser number of waterways and bodies of water than Central Sulawesi Province
Denmark Canada Austria
action less
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Central Sulawesi Province
relation located next to body of water
type waterway
type body of water
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) ?a WHERE { VALUES ( ?k ) { ( ontology:waterway ) ( ontology:body_of_water ) } . ?r rdf:type ?k } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?b ) WHERE { resource:Central_Sulawesi_Province property:located_next_to_body_of_water ?v . { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:waterway ) ( ontology:body_of_water ) } } } } . FILTER ( ?t < ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1631163
P206
Q1267889 Q15324 Q1048835
USER
And also tell me about Aia?
(c(Q1048835),P206,c(Q1267889)|c(Q15324))
action less
action union
action find_tuple_counts
relation P206
type Q1048835
type Q1267889
action find_tuple_counts
relation P206
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q1631163
relation P206
type Q1267889
type Q15324
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?d ) WHERE { { ?g property:P206 ?w . ?g rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1267889 } UNION { ?g property:P206 ?w . ?g rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15324 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Q1631163 property:P206 ?b . { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } } } } . FILTER ( ?d < ?p ) }
Aia
action less
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Aia
relation located next to body of water
type waterway
type body of water
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?d ) WHERE { { ?g property:located_next_to_body_of_water ?w . ?g rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:waterway } UNION { ?g property:located_next_to_body_of_water ?w . ?g rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:body_of_water } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Aia property:located_next_to_body_of_water ?b . { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:waterway ) ( ontology:body_of_water ) } } } } . FILTER ( ?d < ?p ) }
[]
waterway body of water political territorial entity
Q16 Q40 Q643919
SYSTEM
Canada, Austria, Torfaen County Borough
Q736872 Q434192 Q21590062 Q434053 Q782910 Q1447512 Q1628271 Q2044159 Q49562 Q52626 Q677038 Q540185 Q484552 Q433632 Q983556 Q193780 Q635308 Q741749 Q983465 Q2772 Q4359878 Q353618 Q4524665 Q983628 Q846153 Q925913 Q830969 Q846159 Q1324548 Q40 Q962773 Q12071 Q985601 Q615809 Q565002 Q1905388 Q16 Q390069 Q11339 Q55845 Q210887 Q2323549 Q594892 Q582901 Q1853429 Q4408930 Q587114 Q434321 Q11492 Q11263 Q915283 Q11294004 Q4321529 Q661198 Q741765 Q985598 Q1617562 Q493933 Q913483 Q572542 Q13148 Q13149 Q716384 Q499184 Q13462 Q986364 Q956757 Q1798827 Q2244278 Q693258 Q736926 Q433918 Q434019 Q986359 Q575670 Q926410 Q1768232 Q698246 Q15907 Q624967 Q1606460 Q832984 Q11286 Q13150 Q913492 Q1628788 Q13154 Q176624 Q2451327 Q24342199 Q11811 Q426350 Q738674 Q7165 Q983433 Q524431 Q985586 Q1248474 Q11296 Q13424648 Q277302 Q628446 Q366948 Q492741 Q11822 Q932914 Q492748 Q434150 Q944264 Q943431 Q920391 Q399702 Q491786 Q2140 Q985599 Q983635 Q706892 Q615061 Q953876 Q3741 Q657800 Q638013 Q492737 Q433958 Q492735 Q1588135 Q4469165 Q827393 Q11304 Q1260011 Q737440 Q657738 Q584446 Q427330 Q682964 Q171852 Q1607872 Q2110 Q433986 Q501077 Q80967 Q994034 Q586584 Q983577 Q611250 Q615916 Q986727 Q181633 Q643919 Q487268 Q207176 Q736888 Q175057 Q398588 Q1110355 Q434173 Q575639 Q597201 Q434286 Q594961 Q613832 Q491929 Q947285
(c(Q1048835),P206,c(Q1267889)|c(Q15324))
action less
action union
action find_tuple_counts
relation P206
type Q1048835
type Q1267889
action find_tuple_counts
relation P206
type Q1048835
type Q15324
action count
action filter_multi_types
action find
entity Q1631163
relation P206
type Q1267889
type Q15324
[ANSWERS]
[{'concept': 'Q1048835'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?d ) WHERE { { ?g property:P206 ?w . ?g rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1267889 } UNION { ?g property:P206 ?w . ?g rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15324 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Q1631163 property:P206 ?b . { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } } } } . FILTER ( ?d < ?p ) }
Ayamonte San Andrés y Sauces Antarctic Treaty area Garafía El Sauzal Chantada Soutomaior Llanybydder Adra Formentera San Miguel de Abona Puerto del Rosario Algeciras Santa Cruz de La Palma La Guancha Almuñécar Vallehermoso, Santa Cruz de Tenerife Chipiona Santa Eulària des Riu West Sumatra Pisocine Adeje Szychtory Sant Joan de Labritja San Roque Los Barrios Betancuria Puerto Real El Pinar, Canary Islands Austria San Bartolomé, Las Palmas Vilassar de Mar La Victoria de Acentejo Sorvilán Albuñol L'Alcúdia de Crespins Canada Agaete Llançà Telde Sanlúcar de Barrameda Yaiza, Las Palmas La Oliva Lújar Valverde Sasiv Itamaracá Villa de Mazo Mataró Cadaqués Santiago del Teide Newport City Nuśmice Pájara San Fernando Moya, Las Palmas Nigrán El Ejido Casares Icod de los Vinos La Línea de la Concepción Nerja Arucas, Las Palmas Roquetas de Mar Begur San Juan de la Rambla, Santa Cruz de Tenerife Gáldar, Las Palmas La Frontera Tías, Las Palmas San Bartolomé de Tirajana Isla Cristina Barlovento, Santa Cruz de Tenerife Fuencaliente Santa María de Guía de Gran Canaria Antigua, Fuerteventura Algarrobo Trillo Arona, Tenerife Rota Arafo Malpica de Tajo Conil de la Frontera Castelló d'Empúries Torrox Manilva El Puente del Arzobispo Barbate El Rosario, Tenerife Sé City and County of Cardiff El Port de la Selva Tazacorte Santa Lucía de Tirajana Portbou Güímar Fasnia Tuineje, Las Palmas Rincón de la Victoria Colera Troitske Chiclana de la Frontera Mogán, Las Palmas Los Llanos de Aridane Vélez-Málaga Roses Alajeró, Santa Cruz de Tenerife Estepona Puntagorda Tacoronte, Santa Cruz de Tenerife Granadilla de Abona La Orotava Agüimes, Las Palmas Calvià North Sumatra Province Ingenio, Las Palmas Sant Josep de sa Talaia Artenara, Las Palmas Rubite Los Realejos Special Region of Yogyakarta Santa Úrsula Tinajo, Las Palmas Torremolinos Breña Alta Fuengirola Haría, Las Palmas Uhrynów Vejer de la Frontera L'Escala Hermigua Teguise Arico Valle Gran Rey Salobreña Los Silos Odessa Oblast Piedralaves Lampung Province Breña Baja Lepe Outer Hebrides Variazh Nînovîci, La Matanza de Acentejo Polopos Vasilivka La Aldea de San Nicolás Mykolaiv Oblast Torfaen County Borough Candelaria Monmouthshire Punta Umbría Fernando de Noronha Agulo Níjar Puntallana Gualchos Lake of the Woods, Ontario Tijarafe Buenavista del Norte Mañón Berja Enix, Spain
Canada Austria Torfaen County Borough
action less
action union
action find_tuple_counts
relation located next to body of water
type political territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type political territorial entity
type body of water
action count
action filter_multi_types
action find
entity Aia
relation located next to body of water
type waterway
type body of water
[{'concept': 'political territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?d ) WHERE { { ?g property:located_next_to_body_of_water ?w . ?g rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:waterway } UNION { ?g property:located_next_to_body_of_water ?w . ?g rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:body_of_water } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Aia property:located_next_to_body_of_water ?b . { ?b rdf:type ?y . VALUES ( ?y ) { ( ontology:waterway ) ( ontology:body_of_water ) } } } } . FILTER ( ?d < ?p ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relations with around 1 political territory ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?q ) WHERE { ?y property:P530 ?t . ?t rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?y } }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?q ) WHERE { ?y property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 1
[ANSWERS] have diplomatic relations with around 1 political territory
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?q ) WHERE { ?y property:P530 ?t . ?t rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?y } }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia, Belarus and Luxembourg have diplomatic relations with around 1 political territory
Georgia Belarus Luxembourg
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { FILTER ( ?q = 1 ) . { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?q ) WHERE { ?y property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q838948
USER
Which administrative territories are the countries of origin of more number of literary works and works of art than that administrative territory ?
(c(Q7725634)|c(Q838948),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
[[{'concept': 'literary work'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
designation for an administrative territorial entity literary work work of art
Comparative|More/Less|Mult. entity type|Clarification
Q32
SYSTEM
Did you mean Luxembourg ?
(c(Q7725634)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Did you mean Luxembourg ?
Luxembourg
[[{'concept': 'literary work'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Comparative Reasoning (All)
USER
No, I meant Georgia. Could you tell me the answer for that?
(c(Q7725634)|c(Q838948),P495,c(Q15617994))
Q230
[[{'concept': 'Q7725634'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'literary work'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q717 Q837 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q794 Q884 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q854 Q424 Q232 Q20 Q1041 Q27 Q28 Q189 Q843 Q1028 Q225 Q224 Q222 Q96 Q17 Q902 Q974 Q1033 Q191 Q965 Q298 Q212 Q213 Q211 Q214 Q215 Q218 Q219 Q833 Q836 Q79 Q77 Q858 Q948 Q29 Q869
(c(Q7725634)|c(Q838948),P495,c(Q15617994))
[ANSWERS] are the countries of origin of more number of literary works and works of art than that administrative territory
[[{'concept': 'Q7725634'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Israel Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Venezuela Nepal Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iran South Korea Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Sri Lanka Cambodia Kazakhstan Norway Senegal Ireland Hungary Iceland Pakistan Morocco Bosnia and Herzegovina Croatia Albania Mexico Japan Bangladesh Democratic Republic of the Congo Nigeria Estonia Burkina Faso Chile Ukraine Czech Republic Latvia Slovakia Slovenia Romania Bulgaria Malaysia Myanmar Egypt Uruguay Syria Tunisia Spain Thailand
Italy, Brazil and United States of America are the countries of origin of more number of literary works and works of art than that administrative territory
Italy Brazil United States of America
[[{'concept': 'literary work'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?z WHERE { FILTER ( ?v = ?y ) . { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?v ) WHERE { ?z property:P530 ?t . ?z rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?z } . { SELECT DISTINCT ( MIN ( ?l ) AS ?y ) { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?l ) WHERE { ?p rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 . ?p property:P530 ?s } GROUP BY ?p } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?z WHERE { FILTER ( ?v = ?y ) . { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?v ) WHERE { ?z property:diplomatic_relation ?t . ?z rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( MIN ( ?l ) AS ?y ) { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?l ) WHERE { ?p rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?s } GROUP BY ?p } } }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relationships with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?z WHERE { FILTER ( ?v = ?y ) . { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?v ) WHERE { ?z property:P530 ?t . ?z rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?z } . { SELECT DISTINCT ( MIN ( ?l ) AS ?y ) { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?l ) WHERE { ?p rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 . ?p property:P530 ?s } GROUP BY ?p } } }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea have diplomatic relationships with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?z WHERE { FILTER ( ?v = ?y ) . { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?v ) WHERE { ?z property:diplomatic_relation ?t . ?z rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( MIN ( ?l ) AS ?y ) { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?l ) WHERE { ?p rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?s } GROUP BY ?p } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q685 Q691
P36
Q56061
USER
Which administrative territories are called the capital of Solomon Islands and Papua New Guinea ?
(Q685,P36,c(Q56061)) (Q691,P36,c(Q56061))
action union
action filter_type
action find
entity Q685
relation P36
type Q56061
action filter_type
action find
entity Q691
relation P36
type Q56061
['Q685', 'P36', {'concept': 'Q56061'}] ['Q691', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { resource:Q691 property:P36 ?v . ?v rdf:type ontology:Q56061 } UNION { resource:Q685 property:P36 ?v . ?v rdf:type ontology:Q56061 } }
Solomon Islands Papua New Guinea
action union
action filter_type
action find
entity Solomon Islands
relation capital
type administrative territorial entity
action filter_type
action find
entity Papua New Guinea
relation capital
type administrative territorial entity
['Solomon Islands', 'capital', {'concept': 'administrative territorial entity'}] ['Papua New Guinea', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { resource:Papua_New_Guinea property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity } UNION { resource:Solomon_Islands property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q40921 Q36526
SYSTEM
Honiara, Port Moresby
Q40921 Q36526
(Q685,P36,c(Q56061)) (Q691,P36,c(Q56061))
action union
action filter_type
action find
entity Q685
relation P36
type Q56061
action filter_type
action find
entity Q691
relation P36
type Q56061
Are [ANSWERS] are called the capital of Solomon Islands and Papua New Guinea
['Q685', 'P36', {'concept': 'Q56061'}] ['Q691', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { resource:Q691 property:P36 ?v . ?v rdf:type ontology:Q56061 } UNION { resource:Q685 property:P36 ?v . ?v rdf:type ontology:Q56061 } }
Honiara Port Moresby
Are Honiara and Port Moresby are called the capital of Solomon Islands and Papua New Guinea
Honiara Port Moresby
action union
action filter_type
action find
entity Solomon Islands
relation capital
type administrative territorial entity
action filter_type
action find
entity Papua New Guinea
relation capital
type administrative territorial entity
['Solomon Islands', 'capital', {'concept': 'administrative territorial entity'}] ['Papua New Guinea', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { resource:Papua_New_Guinea property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity } UNION { resource:Solomon_Islands property:capital ?v . ?v rdf:type ontology:administrative_territorial_entity } }
[]