Simple Question (Direct)
Simple Question
Q4354287
P106
Q12737077
USER
Which occupation has Uladzimir Kazlou as his/her 's career ?
(Q4354287,P106,c(Q12737077))
action filter_type
action find
entity Q4354287
relation P106
type Q12737077
['Q4354287', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q4354287 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Uladzimir Kazlou
action filter_type
action find
entity Uladzimir Kazlou
relation occupation
type occupation
['Uladzimir Kazlou', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Uladzimir_Kazlou property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q18510502
SYSTEM
javelin thrower
Q18510502
(Q4354287,P106,c(Q12737077))
action filter_type
action find
entity Q4354287
relation P106
type Q12737077
The [ANSWER] has Uladzimir Kazlou as his/her 's career
['Q4354287', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q4354287 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
javelin thrower
The javelin thrower has Uladzimir Kazlou as his/her 's career
javelin thrower
action filter_type
action find
entity Uladzimir Kazlou
relation occupation
type occupation
['Uladzimir Kazlou', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Uladzimir_Kazlou property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4354287
P21
Q290
USER
Which sex does Uladzimir Kazlou have ?
(Q4354287,P21,c(Q290))
action filter_type
action find
entity Q4354287
relation P21
type Q290
['Q4354287', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q4354287 property:P21 ?p . ?p rdf:type ontology:Q290 }
Uladzimir Kazlou
action filter_type
action find
entity Uladzimir Kazlou
relation gender
type sex
['Uladzimir Kazlou', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Uladzimir_Kazlou property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4354287,P21,c(Q290))
action filter_type
action find
entity Q4354287
relation P21
type Q290
Uladzimir Kazlou has a [ANSWER]
['Q4354287', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q4354287 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
Uladzimir Kazlou has a male
male
action filter_type
action find
entity Uladzimir Kazlou
relation gender
type sex
['Uladzimir Kazlou', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Uladzimir_Kazlou property:gender ?p . ?p rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P825
Q502895 Q7725634 Q4989906
USER
How many people are exactly 2 literary works and monuments dedicated to ?
(c(Q7725634)|c(Q4989906),P825,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q4989906
value 2
[[{'concept': 'Q7725634'}, {'concept': 'Q4989906'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?w ) WHERE { { ?c property:P825 ?n . ?n rdf:type ontology:Q502895 . ?c rdf:type ontology:Q7725634 } UNION { ?c property:P825 ?n . ?n rdf:type ontology:Q502895 . ?c rdf:type ontology:Q4989906 } } GROUP BY ?n } . FILTER ( ?w = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type monument
value 2
[[{'concept': 'literary work'}, {'concept': 'monument'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?w ) WHERE { { ?c property:dedicated_to ?n . ?n rdf:type ontology:common_name . ?c rdf:type ontology:literary_work } UNION { ?c property:dedicated_to ?n . ?n rdf:type ontology:common_name . ?c rdf:type ontology:monument } } GROUP BY ?n } . FILTER ( ?w = 2 ) }
[]
common name literary work monument
SYSTEM
3
Q1425 Q1427 Q1430
(c(Q7725634)|c(Q4989906),P825,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q4989906
value 2
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q4989906'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?w ) WHERE { { ?c property:P825 ?n . ?n rdf:type ontology:Q502895 . ?c rdf:type ontology:Q7725634 } UNION { ?c property:P825 ?n . ?n rdf:type ontology:Q502895 . ?c rdf:type ontology:Q4989906 } } GROUP BY ?n } . FILTER ( ?w = 2 ) }
Trajan Hadrian Marcus Aurelius Antoninus
3
action count
action equal
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type monument
value 2
[[{'concept': 'literary work'}, {'concept': 'monument'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?w ) WHERE { { ?c property:dedicated_to ?n . ?n rdf:type ontology:common_name . ?c rdf:type ontology:literary_work } UNION { ?c property:dedicated_to ?n . ?n rdf:type ontology:common_name . ?c rdf:type ontology:monument } } GROUP BY ?n } . FILTER ( ?w = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q24045859 Q4354287
P27 P17
Q15617994
USER
Which administrative territories are Uladzimir Kazlou an inhabitant of or are Bulawayo Province situated in ?
OR((Q4354287,P27,c(Q15617994)), (Q24045859,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4354287
relation P27
action find
entity Q24045859
relation P17
type Q15617994
{'OR': [['Q4354287', 'P27', {'concept': 'Q15617994'}], ['Q24045859', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q4354287 property:P27 ?r } UNION { resource:Q24045859 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Bulawayo Province Uladzimir Kazlou
action filter_type
action union
action find
entity Uladzimir Kazlou
relation country of citizenship
action find
entity Bulawayo Province
relation country
type designation for an administrative territorial entity
{'OR': [['Uladzimir Kazlou', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Bulawayo Province', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Uladzimir_Kazlou property:country_of_citizenship ?r } UNION { resource:Bulawayo_Province property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q954 Q184
SYSTEM
Zimbabwe, Belarus
Q954 Q184
OR((Q4354287,P27,c(Q15617994)), (Q24045859,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4354287
relation P27
action find
entity Q24045859
relation P17
type Q15617994
[ANSWERS] are Uladzimir Kazlou an inhabitant of or are Bulawayo Province situated in
{'OR': [['Q4354287', 'P27', {'concept': 'Q15617994'}], ['Q24045859', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q4354287 property:P27 ?r } UNION { resource:Q24045859 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Zimbabwe Belarus
Zimbabwe and Belarus are Uladzimir Kazlou an inhabitant of or are Bulawayo Province situated in
Zimbabwe Belarus
action filter_type
action union
action find
entity Uladzimir Kazlou
relation country of citizenship
action find
entity Bulawayo Province
relation country
type designation for an administrative territorial entity
{'OR': [['Uladzimir Kazlou', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Bulawayo Province', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Uladzimir_Kazlou property:country_of_citizenship ?r } UNION { resource:Bulawayo_Province property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q265
P840
Q15617994 Q2342494 Q15416
USER
Which administrative territories are lesser number of collectables or television programs set in than Uzbekistan ?
(c(Q2342494)|c(Q15416),P840,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q265
relation P840
type Q2342494
type Q15416
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?m < ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:P840 resource:Q265 . { VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?b rdf:type ?z } } } . { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?x . VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } GROUP BY ?n } }
Uzbekistan
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Uzbekistan
relation narrative location
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?m < ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:narrative_location resource:Uzbekistan . { VALUES ( ?z ) { ( ontology:collectable ) ( ontology:television_program ) } . ?b rdf:type ?z } } } . { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?x . VALUES ( ?x ) { ( ontology:collectable ) ( ontology:television_program ) } } GROUP BY ?n } }
[]
designation for an administrative territorial entity collectable television program
Q184 Q32 Q31
SYSTEM
Belarus, Luxembourg, Belgium
Q377277 Q804 Q278221 Q186115 Q262 Q189 Q47428 Q18021 Q842 Q36678 Q710 Q837 Q1460 Q403 Q790 Q419 Q165040 Q232782 Q244 Q12515 Q32 Q31 Q37 Q34 Q928 Q851 Q769680 Q12798 Q236 Q12538 Q232 Q233 Q1093 Q1860611 Q913434 Q127043 Q184 Q1029 Q1028 Q1458 Q91217 Q1452 Q225 Q12700 Q2336399 Q3207 Q1033 Q1030 Q962 Q159689 Q114 Q41158 Q212 Q517107 Q217 Q912 Q2107 Q1007 Q833 Q14859 Q2742 Q836 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q800 Q12545 Q53216 Q6247
(c(Q2342494)|c(Q15416),P840,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q265
relation P840
type Q2342494
type Q15416
[ANSWERS] are lesser number of collectables or television programs set in than Uzbekistan
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?m < ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:P840 resource:Q265 . { VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?b rdf:type ?z } } } . { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?x . VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } GROUP BY ?n } }
Glückstadt Panama Berchtesgaden Montmartre Algeria Iceland Valdobbiadene Biella Oman West Bank Kiribati Nepal Sicily Serbia Haiti Peru Duchy of Parma Portofino Barbados Gard Luxembourg Belgium Lithuania Sweden Philippines Saudi Arabia Bornholm Vendée Montenegro Haute-Garonne Kazakhstan Malta Limburg Viby Les Halles Garmisch-Partenkirchen Belarus Mozambique Morocco Calabria Montepulciano Basilicata Bosnia and Herzegovina Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Benin Bomarzo Kenya Cortina d'Ampezzo Ukraine Rudolstadt Republic of Moldova Mali Wuppertal Guinea-Bissau Malaysia Ansbach Münster Myanmar Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Costa Rica Hérault Aquileia Mantua
Belarus, Luxembourg and Belgium are lesser number of collectables or television programs set in than Uzbekistan
Belarus Luxembourg Belgium
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Uzbekistan
relation narrative location
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { FILTER ( ?m < ?e ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b property:narrative_location resource:Uzbekistan . { VALUES ( ?z ) { ( ontology:collectable ) ( ontology:television_program ) } . ?b rdf:type ?z } } } . { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?m ) WHERE { ?f rdf:type ?x . VALUES ( ?x ) { ( ontology:collectable ) ( ontology:television_program ) } } GROUP BY ?n } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q184 Q32 Q31
P17
Q7210356
USER
Which political organizations are situated in those administrative territories ?
(c(Q7210356),P17,Q184) (c(Q7210356),P17,Q32) (c(Q7210356),P17,Q31)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q7210356
[{'concept': 'Q7210356'}, 'P17', 'Q184'] [{'concept': 'Q7210356'}, 'P17', 'Q32'] [{'concept': 'Q7210356'}, 'P17', 'Q31']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7210356 . ?j property:P17 ?y . VALUES ( ?y ) { ( resource:Q377277 ) ( resource:Q804 ) ( resource:Q278221 ) } }
Belarus Luxembourg Belgium
action filter_type
action find_reverse
entity prev_answer
relation country
type political organization
[{'concept': 'political organization'}, 'country', 'Belarus'] [{'concept': 'political organization'}, 'country', 'Luxembourg'] [{'concept': 'political organization'}, 'country', 'Belgium']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_organization . ?j property:country ?y . VALUES ( ?y ) { ( resource:Glückstadt ) ( resource:Panama ) ( resource:Berchtesgaden ) } }
[]
political organization
Q1470087 Q767761 Q645787
SYSTEM
Francophone Democratic Federalists, The Greens, Socialist Party
Q2388442 Q113598 Q1938537 Q1977920 Q2669991 Q2436636 Q396177 Q2662463 Q772928 Q1938040 Q1729022 Q174439 Q18228692 Q815276 Q815274 Q7165490 Q16838609 Q21804527 Q463899 Q1270494 Q767761 Q21714733 Q339280 Q1070311 Q7229703 Q13512576 Q1344670 Q1029792 Q3366715 Q22661213 Q907516 Q28982 Q932768 Q130671 Q3388044 Q2431678 Q1774476 Q478306 Q2215286 Q792293 Q3561728 Q645787 Q750673 Q925616 Q655611 Q1725837 Q2067771 Q1811565 Q1084016 Q1924175 Q2532509 Q762051 Q2428334 Q840814 Q1510441 Q2636334 Q19850616 Q1670003 Q597900 Q533384 Q2711996 Q1470087 Q1160192 Q7248780 Q682990 Q513521 Q2871206
(c(Q7210356),P17,Q184) (c(Q7210356),P17,Q32) (c(Q7210356),P17,Q31)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q7210356
[ANSWERS] are situated in those administrative territories
[{'concept': 'Q7210356'}, 'P17', 'Q184'] [{'concept': 'Q7210356'}, 'P17', 'Q32'] [{'concept': 'Q7210356'}, 'P17', 'Q31']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7210356 . ?j property:P17 ?y . VALUES ( ?y ) { ( resource:Q377277 ) ( resource:Q804 ) ( resource:Q278221 ) } }
Beer Lovers Party Belarusian Peasants' and Workers' Union Belarusian Party "The Greens" Belarusian Patriotic Party Belarusian Socialist Sporting Party Republican Party of Labour and Justice Agrarian Party Communist Party of Byelorussia Belarusian Left Party "A Just World" United Democratic Forces of Belarus BPF Party United Civic Party of Belarus Belarusian Young Christian Democrats Belarusian Social Democratic Party Belarusian Social Democratic Assembly People's Coalition 5 Plus General Jewish Labour Bund in Belarus Liberal Party Volksdeutsche Bewegung The Left The Greens Radical Party Alternative Democratic Reform Party Luxembourg Socialist Workers' Party Popular Independent Movement Party for Integral Democracy Christian Social People's Party Democratic Party Christian Social Party Socialist Party National Front New Flemish Alliance Vivant Libertarian, Direct, Democratic Catholic Flemish People's Party Liberal Appeal Party for Freedom and Progress VLOTT Liberal party Catholic Party Flemish-Socialist Movement Socialist Party Christian Democratic and Flemish Workers' Party of Belgium Ecolo People's Union NEE Belgian Labour Party Christlich Soziale Partei Union des Francophones Belgian Socialist Party Rassemblement Wallonie France Left Socialist Party Humanist Democratic Centre Sociaal-Liberale Partij Liberal Party Ecolo-Groen ProDG Vlaams Blok Reform Movement Liberal Reformist Party Francophone Democratic Federalists Open Flemish Liberals and Democrats Progressive Party Flemish Interest Green Belgian Alliance
Francophone Democratic Federalists, The Greens and Socialist Party are situated in those administrative territories
Francophone Democratic Federalists The Greens Socialist Party
action filter_type
action find_reverse
entity prev_answer
relation country
type political organization
[{'concept': 'political organization'}, 'country', 'Belarus'] [{'concept': 'political organization'}, 'country', 'Luxembourg'] [{'concept': 'political organization'}, 'country', 'Belgium']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_organization . ?j property:country ?y . VALUES ( ?y ) { ( resource:Glückstadt ) ( resource:Panama ) ( resource:Berchtesgaden ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1470087 Q767761 Q645787
P17
Q15617994
USER
Which administrative territories are those political organizations present in ?
(Q1470087,P17,c(Q15617994)) (Q767761,P17,c(Q15617994)) (Q645787,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q1470087', 'P17', {'concept': 'Q15617994'}] ['Q767761', 'P17', {'concept': 'Q15617994'}] ['Q645787', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?b ) { ( resource:Q2388442 ) ( resource:Q113598 ) ( resource:Q1938537 ) } . ?b property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Francophone Democratic Federalists The Greens Socialist Party
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Francophone Democratic Federalists', 'country', {'concept': 'designation for an administrative territorial entity'}] ['The Greens', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Socialist Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?b ) { ( resource:Beer_Lovers_Party ) ( resource:Belarusian_Peasants'_and_Workers'_Union ) ( resource:Belarusian_Party_"The_Greens" ) } . ?b property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q32 Q31
SYSTEM
Luxembourg for 2nd, Belgium for 1st, 3rd
Q31 Q32 Q31
(Q1470087,P17,c(Q15617994)) (Q767761,P17,c(Q15617994)) (Q645787,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWERS]
['Q1470087', 'P17', {'concept': 'Q15617994'}] ['Q767761', 'P17', {'concept': 'Q15617994'}] ['Q645787', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?b ) { ( resource:Q2388442 ) ( resource:Q113598 ) ( resource:Q1938537 ) } . ?b property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Belgium Luxembourg Belgium
Those political organizations are in Belgium, Luxembourg and Belgium
Belgium Luxembourg Belgium
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Francophone Democratic Federalists', 'country', {'concept': 'designation for an administrative territorial entity'}] ['The Greens', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Socialist Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { VALUES ( ?b ) { ( resource:Beer_Lovers_Party ) ( resource:Belarusian_Peasants'_and_Workers'_Union ) ( resource:Belarusian_Party_"The_Greens" ) } . ?b property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1470087
P1142
Q1047113
USER
Which special field does that political organization believe in ?
(Q1470087,P1142,c(Q1047113))
action filter_type
action find
entity Q1470087
relation P1142
type Q1047113
['Q1470087', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?y WHERE { resource:Q1470087 property:P1142 ?y . ?y rdf:type ontology:Q1047113 }
Francophone Democratic Federalists
action filter_type
action find
entity Francophone Democratic Federalists
relation political ideology
type special field
['Francophone Democratic Federalists', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?y WHERE { resource:Francophone_Democratic_Federalists property:political_ideology ?y . ?y rdf:type ontology:special_field }
[]
special field
Clarification for simple ques.
Q1470087
SYSTEM
Did you mean Francophone Democratic Federalists ?
Q31 Q32 Q31
(Q31,P1142,c(Q1047113)) (Q32,P1142,c(Q1047113)) (Q31,P1142,c(Q1047113))
[ANSWER]
['Q31', 'P1142', {'concept': 'Q1047113'}] ['Q32', 'P1142', {'concept': 'Q1047113'}] ['Q31', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?y WHERE { resource:Q1470087 property:P1142 ?y . ?y rdf:type ontology:Q1047113 }
Belgium Luxembourg Belgium
Did you mean Francophone Democratic Federalists ?
Francophone Democratic Federalists
['Belgium', 'political ideology', {'concept': 'special field'}] ['Luxembourg', 'political ideology', {'concept': 'special field'}] ['Belgium', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?y WHERE { resource:Francophone_Democratic_Federalists property:political_ideology ?y . ?y rdf:type ontology:special_field }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1470087,P1142,c(Q1047113))
['Q1470087', 'P1142', {'concept': 'Q1047113'}]
['Francophone Democratic Federalists', 'political ideology', {'concept': 'special field'}]
[]
Q6216
SYSTEM
liberalism
Q6216
(Q1470087,P1142,c(Q1047113))
action filter_type
action find
entity Q1470087
relation P1142
type Q1047113
That political organization believes in [ANSWER]
['Q1470087', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?y WHERE { resource:Q1470087 property:P1142 ?y . ?y rdf:type ontology:Q1047113 }
liberalism
That political organization believes in liberalism
liberalism
action filter_type
action find
entity Francophone Democratic Federalists
relation political ideology
type special field
['Francophone Democratic Federalists', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?y WHERE { resource:Francophone_Democratic_Federalists property:political_ideology ?y . ?y rdf:type ontology:special_field }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P122
Q22676587 Q12737077 Q15617994
USER
Which administrative territories have max number of monarchic systems and occupations as government ?
(c(Q15617994),P122,c(Q22676587)|c(Q12737077))
action argmax
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) ?i WHERE { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:Q22676587 ) ( ontology:Q12737077 ) } } GROUP BY ?i } } . FILTER ( ?p = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?x WHERE { { ?x property:P122 ?m . ?m rdf:type ontology:Q22676587 . ?x rdf:type ontology:Q15617994 } UNION { ?x property:P122 ?m . ?x rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q12737077 } } GROUP BY ?x } }
action argmax
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) ?i WHERE { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:monarchic_system ) ( ontology:occupation ) } } GROUP BY ?i } } . FILTER ( ?p = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?x WHERE { { ?x property:basic_form_of_government ?m . ?m rdf:type ontology:monarchic_system . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:basic_form_of_government ?m . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:occupation } } GROUP BY ?x } }
[]
monarchic system occupation designation for an administrative territorial entity
Q17 Q833 Q878
SYSTEM
Japan, Malaysia, United Arab Emirates
Q833 Q541991 Q228 Q17 Q878
(c(Q15617994),P122,c(Q22676587)|c(Q12737077))
action argmax
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
[ANSWERS] have max number of monarchic systems and occupations as government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) ?i WHERE { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:Q22676587 ) ( ontology:Q12737077 ) } } GROUP BY ?i } } . FILTER ( ?p = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?x WHERE { { ?x property:P122 ?m . ?m rdf:type ontology:Q22676587 . ?x rdf:type ontology:Q15617994 } UNION { ?x property:P122 ?m . ?x rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q12737077 } } GROUP BY ?x } }
Malaysia Hummelfeld Andorra Japan United Arab Emirates
Japan, Malaysia and United Arab Emirates have max number of monarchic systems and occupations as government
Japan Malaysia United Arab Emirates
action argmax
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) ?i WHERE { ?r rdf:type ?l . VALUES ( ?l ) { ( ontology:monarchic_system ) ( ontology:occupation ) } } GROUP BY ?i } } . FILTER ( ?p = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) ?x WHERE { { ?x property:basic_form_of_government ?m . ?m rdf:type ontology:monarchic_system . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:basic_form_of_government ?m . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:occupation } } GROUP BY ?x } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q5589178 Q15617994
USER
How many regimes or administrative territories share the border with that administrative territory ?
(Q17,P47,c(Q5589178)) (Q17,P47,c(Q15617994)) (Q17,P47,c(Q5589178)) (Q17,P47,c(Q15617994)) (Q833,P47,c(Q5589178)) (Q833,P47,c(Q15617994)) (Q878,P47,c(Q5589178)) (Q878,P47,c(Q15617994))
['Q17', 'P47', {'concept': 'Q5589178'}] ['Q17', 'P47', {'concept': 'Q15617994'}] ['Q17', 'P47', {'concept': 'Q5589178'}] ['Q17', 'P47', {'concept': 'Q15617994'}] ['Q833', 'P47', {'concept': 'Q5589178'}] ['Q833', 'P47', {'concept': 'Q15617994'}] ['Q878', 'P47', {'concept': 'Q5589178'}] ['Q878', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1407064 property:P47 ?z } UNION { resource:Q1407064 property:P47 ?y } UNION { resource:Q1407064 property:P47 ?z } UNION { resource:Q1407064 property:P47 ?y } UNION { resource:Q833 property:P47 ?z } UNION { resource:Q833 property:P47 ?y } UNION { resource:Q878 property:P47 ?z } UNION { resource:Q878 property:P47 ?y } } . ?z rdf:type ontology:Q5589178 . ?y rdf:type ontology:Q15617994 }
['Japan', 'shares border with', {'concept': 'regime'}] ['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Japan', 'shares border with', {'concept': 'regime'}] ['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Malaysia', 'shares border with', {'concept': 'regime'}] ['Malaysia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['United Arab Emirates', 'shares border with', {'concept': 'regime'}] ['United Arab Emirates', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Japan property:shares_border_with ?z } UNION { resource:Japan property:shares_border_with ?y } UNION { resource:Japan property:shares_border_with ?z } UNION { resource:Japan property:shares_border_with ?y } UNION { resource:Malaysia property:shares_border_with ?z } UNION { resource:Malaysia property:shares_border_with ?y } UNION { resource:United_Arab_Emirates property:shares_border_with ?z } UNION { resource:United_Arab_Emirates property:shares_border_with ?y } } . ?z rdf:type ontology:regime . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
regime designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q878
SYSTEM
Did you mean United Arab Emirates ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1407064 property:P47 ?z } UNION { resource:Q1407064 property:P47 ?y } UNION { resource:Q1407064 property:P47 ?z } UNION { resource:Q1407064 property:P47 ?y } UNION { resource:Q833 property:P47 ?z } UNION { resource:Q833 property:P47 ?y } UNION { resource:Q878 property:P47 ?z } UNION { resource:Q878 property:P47 ?y } } . ?z rdf:type ontology:Q5589178 . ?y rdf:type ontology:Q15617994 }
Did you mean United Arab Emirates ?
United Arab Emirates
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Japan property:shares_border_with ?z } UNION { resource:Japan property:shares_border_with ?y } UNION { resource:Japan property:shares_border_with ?z } UNION { resource:Japan property:shares_border_with ?y } UNION { resource:Malaysia property:shares_border_with ?z } UNION { resource:Malaysia property:shares_border_with ?y } UNION { resource:United_Arab_Emirates property:shares_border_with ?z } UNION { resource:United_Arab_Emirates property:shares_border_with ?y } } . ?z rdf:type ontology:regime . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Japan. Could you tell me the answer for that?
(Q17,P47,c(Q5589178)) (Q17,P47,c(Q15617994)) (Q17,P47,c(Q5589178)) (Q17,P47,c(Q15617994)) (Q833,P47,c(Q5589178)) (Q833,P47,c(Q15617994)) (Q878,P47,c(Q5589178)) (Q878,P47,c(Q15617994))
Q17
['Q17', 'P47', {'concept': 'Q5589178'}] ['Q17', 'P47', {'concept': 'Q15617994'}] ['Q17', 'P47', {'concept': 'Q5589178'}] ['Q17', 'P47', {'concept': 'Q15617994'}] ['Q833', 'P47', {'concept': 'Q5589178'}] ['Q833', 'P47', {'concept': 'Q15617994'}] ['Q878', 'P47', {'concept': 'Q5589178'}] ['Q878', 'P47', {'concept': 'Q15617994'}]
['Japan', 'shares border with', {'concept': 'regime'}] ['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Japan', 'shares border with', {'concept': 'regime'}] ['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Malaysia', 'shares border with', {'concept': 'regime'}] ['Malaysia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['United Arab Emirates', 'shares border with', {'concept': 'regime'}] ['United Arab Emirates', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
5
Q159 Q148 Q884 Q865 Q423
(Q17,P47,c(Q5589178)) (Q17,P47,c(Q15617994)) (Q17,P47,c(Q5589178)) (Q17,P47,c(Q15617994)) (Q833,P47,c(Q5589178)) (Q833,P47,c(Q15617994)) (Q878,P47,c(Q5589178)) (Q878,P47,c(Q15617994))
[ANSWER]
['Q17', 'P47', {'concept': 'Q5589178'}] ['Q17', 'P47', {'concept': 'Q15617994'}] ['Q17', 'P47', {'concept': 'Q5589178'}] ['Q17', 'P47', {'concept': 'Q15617994'}] ['Q833', 'P47', {'concept': 'Q5589178'}] ['Q833', 'P47', {'concept': 'Q15617994'}] ['Q878', 'P47', {'concept': 'Q5589178'}] ['Q878', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1407064 property:P47 ?z } UNION { resource:Q1407064 property:P47 ?y } UNION { resource:Q1407064 property:P47 ?z } UNION { resource:Q1407064 property:P47 ?y } UNION { resource:Q833 property:P47 ?z } UNION { resource:Q833 property:P47 ?y } UNION { resource:Q878 property:P47 ?z } UNION { resource:Q878 property:P47 ?y } } . ?z rdf:type ontology:Q5589178 . ?y rdf:type ontology:Q15617994 }
Russia People's Republic of China South Korea Taiwan North Korea
5
['Japan', 'shares border with', {'concept': 'regime'}] ['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Japan', 'shares border with', {'concept': 'regime'}] ['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Malaysia', 'shares border with', {'concept': 'regime'}] ['Malaysia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['United Arab Emirates', 'shares border with', {'concept': 'regime'}] ['United Arab Emirates', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Japan property:shares_border_with ?z } UNION { resource:Japan property:shares_border_with ?y } UNION { resource:Japan property:shares_border_with ?z } UNION { resource:Japan property:shares_border_with ?y } UNION { resource:Malaysia property:shares_border_with ?z } UNION { resource:Malaysia property:shares_border_with ?y } UNION { resource:United_Arab_Emirates property:shares_border_with ?z } UNION { resource:United_Arab_Emirates property:shares_border_with ?y } } . ?z rdf:type ontology:regime . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1016
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with around the same number of administrative territories as Libya ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1016
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?v ) WHERE { ?x property:P530 ?g . ?x rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p rdf:type ontology:Q15617994 . resource:Q1016 property:P530 ?p } } . FILTER ( ?v = ?n ) }
Libya
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 Libya
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 ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?v ) WHERE { ?x property:diplomatic_relation ?g . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Libya property:diplomatic_relation ?p } } . FILTER ( ?v = ?n ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
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 approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1016
relation P530
type Q15617994
[ANSWERS] have tactful political relations with around the same number of administrative territories as Libya
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?v ) WHERE { ?x property:P530 ?g . ?x rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p rdf:type ontology:Q15617994 . resource:Q1016 property:P530 ?p } } . FILTER ( ?v = ?n ) }
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
Netherlands, Poland and People's Republic of China have tactful political relations with around the same number of administrative territories as Libya
Netherlands Poland People's Republic of China
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 Libya
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 ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?g ) AS ?v ) WHERE { ?x property:diplomatic_relation ?g . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Libya property:diplomatic_relation ?p } } . FILTER ( ?v = ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q902
P530
Q15617994 Q15617994
USER
And also tell me about Bangladesh?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?s ) WHERE { ?m property:P530 ?g . ?m rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Q902 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?s = ?p ) }
Bangladesh
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 Bangladesh
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?s ) WHERE { ?m property:diplomatic_relation ?g . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Bangladesh property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s = ?p ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
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 approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?s ) WHERE { ?m property:P530 ?g . ?m rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Q902 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?s = ?p ) }
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
Netherlands Poland People's Republic of China
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 Bangladesh
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?g ) AS ?s ) WHERE { ?m property:diplomatic_relation ?g . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Bangladesh property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s = ?p ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q486972 Q15617994 Q15617994
USER
Which administrative territories are named after min number of human settlements or administrative territories ?
(c(Q15617994),P138,c(Q486972)|c(Q15617994))
action argmin
action union
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action find_tuple_counts
relation P138
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) ?a WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q486972 ) } } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?h WHERE { { ?h property:P138 ?g . ?h rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q486972 } UNION { ?h property:P138 ?g . ?h rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } } GROUP BY ?h } . FILTER ( ?f = ?k ) }
action argmin
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) ?a WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:human_settlement ) } } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?h WHERE { { ?h property:named_after ?g . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:human_settlement } UNION { ?h property:named_after ?g . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?h } . FILTER ( ?f = ?k ) }
[]
human settlement designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q701 Q968630 Q705 Q3216 Q707 Q1087137 Q709 Q1421544 Q12789 Q1027 Q12779 Q124000 Q12631 Q1041 Q3305157 Q492430 Q668 Q10919 Q2567507 Q3278 Q12563 Q142 Q33 Q685048 Q21671144 Q801 Q12538 Q12536 Q12740 Q189 Q12820 Q1090684 Q657 Q3184 Q1098820 Q1452650 Q12594 Q3349 Q378004 Q568751 Q2316529 Q2803031 Q711 Q710 Q1979 Q625403 Q691368 Q1817784 Q199974 Q2998020 Q3083 Q7408058 Q1939894 Q3240 Q1028 Q12772 Q3286 Q691890 Q3249 Q12607 Q2310748 Q3164 Q15055472 Q1465069 Q12572 Q554491 Q159 Q686924 Q598193 Q1090678 Q12556 Q12526 Q12689 Q12753 Q624428 Q155 Q1232680 Q2527360 Q699731 Q290739 Q3377 Q12576 Q3372 Q231168 Q739 Q12589 Q2521404 Q12574 Q957825 Q1270638 Q3093 Q161258 Q1965 Q1508919 Q979470 Q3259 Q786 Q1142326 Q10957559 Q5015782 Q676543 Q1270648 Q2758 Q12694 Q3563282 Q12745 Q12515 Q451448 Q12517 Q3368 Q32 Q31 Q30 Q924 Q36 Q12770 Q928 Q3361 Q39 Q3364 Q302479 Q2514636 Q1452646 Q986 Q541095 Q20211 Q3148 Q219 Q1390630 Q736 Q2567535 Q12798 Q4336071 Q1032 Q1508927 Q11140 Q3068 Q12792 Q676178 Q1268811 Q1338277 Q236 Q492437 Q230 Q221 Q232 Q233 Q2304605 Q1914678 Q282355 Q238 Q12620 Q566032 Q12661 Q20 Q4229407 Q621869 Q1042 Q475659 Q691265 Q28 Q1366860 Q12788 Q12584 Q12580 Q1025 Q683555 Q1020 Q2009 Q843 Q12709 Q184 Q548396 Q1029 Q3336 Q1206596 Q3334 Q541811 Q707950 Q3131 Q7084 Q1904 Q27495866 Q12784 Q12578 Q12717 Q3139 Q12782 Q3342 Q12559 Q558771 Q12679 Q12700 Q12703 Q12675 Q811 Q1270623 Q347 Q71090 Q1989 Q4165945 Q21915715 Q902 Q153402 Q3207 Q974 Q3120 Q894972 Q894971 Q14810 Q967 Q962 Q963 Q2921370 Q694 Q3125 Q114 Q117 Q81751 Q12569 Q2921378 Q1788988 Q754 Q752 Q750 Q12730 Q12657 Q20095245 Q12736 Q12642 Q160307 Q505607 Q6661829 Q2295479 Q2115819 Q912 Q1270568 Q1270636 Q2136219 Q3514973 Q1090691 Q12765 Q1005 Q977 Q1019 Q1008 Q3509886 Q971 Q3194 Q3113 Q568833 Q252157 Q12652 Q3110307 Q894973 Q541589 Q20310 Q760 Q1033 Q11301 Q1030 Q12804 Q12808 Q894970 Q12722 Q784 Q3326 Q79 Q1234961 Q12553 Q3528124 Q775 Q15060143 Q776 Q810 Q770 Q773 Q46130 Q1393469 Q27 Q1011 Q1013 Q4149 Q12549 Q3266 Q12626 Q8575586 Q12543 Q3105 Q12545 Q1558632 Q1913193 Q4066675 Q12758 Q599866 Q1579364 Q731547 Q12816 Q2938 Q12751 Q1951 Q2236821 Q1952 Q2528268 Q3353 Q3357 Q1231 Q13401101 Q558796 Q12564
(c(Q15617994),P138,c(Q486972)|c(Q15617994))
action argmin
action union
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action find_tuple_counts
relation P138
type Q15617994
type Q15617994
[ANSWERS] are named after min number of human settlements or administrative territories
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) ?a WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q486972 ) } } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?h WHERE { { ?h property:P138 ?g . ?h rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q486972 } UNION { ?h property:P138 ?g . ?h rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } } GROUP BY ?h } . FILTER ( ?f = ?k ) }
North Holland Taro Zeeland Aveyron Flevoland Rockaway, New Jersey Marshall Islands Wettertal Var Mauritius Tarn-et-Garonne Victoria Meuse Senegal Mella Bouches-de-l'Elbe India Medebach Arno Charente-Maritime Landes France Finland Simplon Mezhetchina Israel Haute-Garonne Abbasid caliphate Sarthe Iceland Yvelines Montserrat Chad Ariège Gênes Ombrone Marne Côtes-d'Armor Forêts Mont-Tonnerre Noordpolderzijl Pasop Mongolia Kiribati Prince Edward Island Schwielowsee Léman Leninkent, Makhachkala, Republic of Dagestan Hürtgenwald Corse Ain Sam Rayburn Independent School District Upper Oka Principalities Bouches-du-Rhône Morocco Tarn Cher Corcyre Calvados Haute-Marne Liamone Ardennes Gehlsbach Frise Haute-Loire Banan District Russia Mer-Égée Apennins Sègre Indre-et-Loire Gironde Pas-de-Calais Seine-et-Marne Biebertal Brazil Ithaque Stura Wied Sesia Eure-et-Loir Lot Eure Zuyderzée Colombia Manche Veytal Loiret Yssel-Supérieur Rhine Aisne Clipperton Island New Brunswick Marengo Seine-et-Oise Cantal Dominican Republic Seine Moldavia Cabot Public Schools Sankt Thomas Sieg Mönchengladbach Puy-de-Dôme Rumi District Savoie Gard Am Salzhaff Gers Essonne Luxembourg Belgium United States of America Tanzania Poland Somme Philippines Doubs Switzerland Drôme Ems-Occidental Vogtei Montenotte Eritrea Rhin-et-Moselle Peenehagen Ardèche Bulgaria Ourthe Ecuador Pô Vendée Ordzhonikidzevskiy raion of Zaporizhzhya Niger Méditerranée Möhnesee Loire-Atlantique Vaucluse Viereck Dyle Sambre-et-Meuse Montenegro Bouches-du-Weser Georgia Republic of Macedonia Kazakhstan Malta Spitsbergen Vlagtwedder-Veldhuis Nesse-Apfelstädt San Marino Mayenne Rheinbreitbach Nord Norway Komarovsky, Orenburg Oblast Georgsdorf Seychelles Sassenburg Mont-Terrible Hungary Escaut Val-de-Marne Maine-et-Loire Lozère Mauritania Vyronas Malawi Yukon Pakistan Pyrénées-Orientales Belarus Pommerby Mozambique Corse-du-Sud Deux-Nèthes Haute-Corse Ems-Oriental Muldestausee Alpes-de-Haute-Provence Seevetal Ontario Corse Val-d'Oise Lot-et-Garonne Bas-Rhin Alpes-Maritimes Territoire de Belfort Côte-d'Or Isère Wedendorfersee Orne Hautes-Pyrénées Pyrénées-Atlantiques Oise Nicaragua Meurthe Liechtenstein Augustusburg Saskatchewan Sheikh Zayed City Kloster Tempzin Bangladesh Roer Aude Democratic Republic of the Congo Jura Bouches-de-l'Yssel Bouches-de-l'Escaut Nettetal Burundi Benin Botswana Bouches-de-l'Èbre-Montserrat South Holland Hautes-Alpes Kenya Ghana Niedereschach Loire Bouches-de-l'Èbre Trasimène Trinidad and Tobago Groningen Bolivia Haute-Saône Nièvre Sept-Saints Saône-et-Loire Morbihan Fatimid caliphate Philippsreut Llanvaches Zandberg, Zeeland Klein-Ulsda Mali Ems Ruhr Amsterdam, Saskatchewan Tanaro Ter Deux-Sèvres Gambia Djibouti Madagascar Côte d'Ivoire Sègre-Ter Republic of the Congo Aube Allier Meuse-Inférieure Sarre Moselle Golo Bouches-du-Rhin Ems-Supérieur Kuckssee Saint Lucia Nigeria Ennepetal Namibia Vienne Haute-Vienne Bouches-de-la-Meuse Haut-Rhin Dominica Corrèze Egypt Doire Indre Tibre Gelderland Stepenitztal Utrecht Jordan Friesland Overijssel Rhône Jemmapes Ireland Cape Verde Lesotho Neustadt an der Weinstraße Ille-et-Vilaine Charente Meurthe-et-Moselle Umayyad Caliphate Hauts-de-Seine Vosges Hérault Rome Chkalovsk Microdistrict Annino Seine-Maritime Lev Tolstoy Lys Lippe Yonne Leverkusen Haute-Savoie Alberta Rhône-et-Loire Nova Scotia Mont-Blanc Creuse Dordogne Kosovo Region Brandon Valley School District Obere Warnow Loir-et-Cher
Brazil, United States of America and Georgia are named after min number of human settlements or administrative territories
Brazil United States of America Georgia
action argmin
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) ?a WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:human_settlement ) } } GROUP BY ?a } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?h WHERE { { ?h property:named_after ?g . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:human_settlement } UNION { ?h property:named_after ?g . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?h } . FILTER ( ?f = ?k ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q572748 Q184
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Belarus and do Kavečany belong to ?
AND((Q184,P530,c(Q15617994)), (Q572748,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q184
relation P530
action find
entity Q572748
relation P17
type Q15617994
{'AND': [['Q184', 'P530', {'concept': 'Q15617994'}], ['Q572748', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q184 property:P530 ?h . resource:Q572748 property:P17 ?h }
Kavečany Belarus
action filter_type
action intersection
action find
entity Belarus
relation diplomatic relation
action find
entity Kavečany
relation country
type designation for an administrative territorial entity
{'AND': [['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Kavečany', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belarus property:diplomatic_relation ?h . resource:Kavečany property:country ?h }
[]
designation for an administrative territorial entity
Q214
SYSTEM
Slovakia
Q214
AND((Q184,P530,c(Q15617994)), (Q572748,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q184
relation P530
action find
entity Q572748
relation P17
type Q15617994
[ANSWER] holds diplomatic relationship with Belarus and do Kavečany belong to
{'AND': [['Q184', 'P530', {'concept': 'Q15617994'}], ['Q572748', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q184 property:P530 ?h . resource:Q572748 property:P17 ?h }
Slovakia
Slovakia holds diplomatic relationship with Belarus and do Kavečany belong to
Slovakia
action filter_type
action intersection
action find
entity Belarus
relation diplomatic relation
action find
entity Kavečany
relation country
type designation for an administrative territorial entity
{'AND': [['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Kavečany', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belarus property:diplomatic_relation ?h . resource:Kavečany property:country ?h }
[]