Simple Question (Direct)
Simple Question
Q809008
P27
Q1048835
USER
Which political territory is Barry Beyerstein an inhabitant of ?
(Q809008,P27,c(Q1048835))
action filter_type
action find
entity Q809008
relation P27
type Q1048835
['Q809008', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q809008 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Barry Beyerstein
action filter_type
action find
entity Barry Beyerstein
relation country of citizenship
type political territorial entity
['Barry Beyerstein', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Barry_Beyerstein property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q809008,P27,c(Q1048835))
action filter_type
action find
entity Q809008
relation P27
type Q1048835
[ANSWER]
['Q809008', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q809008 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Canada
Canada
action filter_type
action find
entity Barry Beyerstein
relation country of citizenship
type political territorial entity
['Barry Beyerstein', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Barry_Beyerstein property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q809008
P19
Q515
USER
Which city was that person born at ?
(Q16,P19,c(Q515))
action filter_type
action find
entity Q809008
relation P19
type Q515
['Q16', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q809008 property:P19 ?z . ?z rdf:type ontology:Q515 }
Barry Beyerstein
action filter_type
action find
entity Barry Beyerstein
relation place of birth
type city
['Canada', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Barry_Beyerstein property:place_of_birth ?z . ?z rdf:type ontology:city }
[]
city
Q2096
SYSTEM
Edmonton
Q2096
(Q16,P19,c(Q515))
action filter_type
action find
entity Q809008
relation P19
type Q515
[ANSWER]
['Q16', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q809008 property:P19 ?z . ?z rdf:type ontology:Q515 }
Edmonton
Edmonton
action filter_type
action find
entity Barry Beyerstein
relation place of birth
type city
['Canada', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Barry_Beyerstein property:place_of_birth ?z . ?z rdf:type ontology:city }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1355
P159
Q515 Q4830453 Q334453
USER
How many cities are the headquarters of greater number of business enterprises or divisions located than Bangalore ?
(c(Q4830453)|c(Q334453),P159,c(Q515))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q515
type Q334453
action count
action filter_multi_types
action find_reverse
entity Q1355
relation P159
type Q4830453
type Q334453
[[{'concept': 'Q4830453'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?g ) WHERE { VALUES ( ?l ) { ( ontology:Q334453 ) ( ontology:Q4830453 ) } . ?c rdf:type ?l } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:P159 resource:Q1355 . { { ?o rdf:type ontology:Q334453 } UNION { ?o rdf:type ontology:Q4830453 } } } } . FILTER ( ?g > ?j ) }
Bangalore
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type city
type division
action count
action filter_multi_types
action find_reverse
entity Bangalore
relation headquarters location
type business enterprise
type division
[[{'concept': 'business enterprise'}, {'concept': 'division'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?g ) WHERE { VALUES ( ?l ) { ( ontology:division ) ( ontology:business_enterprise ) } . ?c rdf:type ?l } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:headquarters_location resource:Bangalore . { { ?o rdf:type ontology:division } UNION { ?o rdf:type ontology:business_enterprise } } } } . FILTER ( ?g > ?j ) }
[]
city business enterprise division
SYSTEM
6
Q1899 Q1794 Q8684 Q9005 Q34217 Q456
(c(Q4830453)|c(Q334453),P159,c(Q515))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q515
type Q334453
action count
action filter_multi_types
action find_reverse
entity Q1355
relation P159
type Q4830453
type Q334453
[ANSWER]
[[{'concept': 'Q4830453'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?g ) WHERE { VALUES ( ?l ) { ( ontology:Q334453 ) ( ontology:Q4830453 ) } . ?c rdf:type ?l } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:P159 resource:Q1355 . { { ?o rdf:type ontology:Q334453 } UNION { ?o rdf:type ontology:Q4830453 } } } } . FILTER ( ?g > ?j ) }
Kyiv Frankfurt Seoul Brussels Oxford Lyon
6
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type city
type division
action count
action filter_multi_types
action find_reverse
entity Bangalore
relation headquarters location
type business enterprise
type division
[[{'concept': 'business enterprise'}, {'concept': 'division'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?c ) AS ?g ) WHERE { VALUES ( ?l ) { ( ontology:division ) ( ontology:business_enterprise ) } . ?c rdf:type ?l } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:headquarters_location resource:Bangalore . { { ?o rdf:type ontology:division } UNION { ?o rdf:type ontology:business_enterprise } } } } . FILTER ( ?g > ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q239597
P159
Q515 Q4830453 Q334453
USER
And what about Neratovice?
(c(Q4830453)|c(Q334453),P159,c(Q515))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q515
type Q334453
action count
action filter_multi_types
action find_reverse
entity Q239597
relation P159
type Q4830453
type Q334453
[[{'concept': 'Q4830453'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) ?r WHERE { VALUES ( ?i ) { ( ontology:Q4830453 ) ( ontology:Q334453 ) } . ?w rdf:type ?i } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:P159 resource:Q239597 . { { ?c rdf:type ontology:Q4830453 } UNION { ?c rdf:type ontology:Q334453 } } } } . FILTER ( ?v > ?l ) }
Neratovice
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type city
type division
action count
action filter_multi_types
action find_reverse
entity Neratovice
relation headquarters location
type business enterprise
type division
[[{'concept': 'business enterprise'}, {'concept': 'division'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) ?r WHERE { VALUES ( ?i ) { ( ontology:business_enterprise ) ( ontology:division ) } . ?w rdf:type ?i } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:headquarters_location resource:Neratovice . { { ?c rdf:type ontology:business_enterprise } UNION { ?c rdf:type ontology:division } } } } . FILTER ( ?v > ?l ) }
[]
city business enterprise division
SYSTEM
99
Q3572 Q1711 Q841296 Q3870 Q849439 Q11736 Q17042 Q41283 Q3624 Q43199 Q7473516 Q1009095 Q18575 Q3994 Q1017251 Q147738 Q2135 Q43196 Q2887 Q3926 Q23482 Q5838 Q181276 Q3692 Q719 Q1899 Q14960 Q1794 Q178878 Q1486 Q1467 Q1461 Q2865 Q10389 Q30340 Q629849 Q8247 Q188082 Q8684 Q167109 Q6602 Q1936067 Q72990 Q2100 Q1731 Q19660 Q665097 Q389562 Q9005 Q8652 Q3004 Q26600 Q2973 Q1475 Q1773 Q2079 Q2773 Q6829 Q1379299 Q1858 Q1854 Q7070 Q68481 Q1508 Q3042 Q157835 Q368929 Q34217 Q2749 Q11194 Q2119 Q1720 Q496405 Q2844 Q11725 Q1865 Q359990 Q42622 Q72778 Q1355 Q75091 Q189761 Q189769 Q1761 Q2795 Q57866 Q2706 Q184998 Q456 Q158523 Q168648 Q2833 Q3935 Q3936 Q3931 Q3616 Q171943 Q1533 Q59132
(c(Q4830453)|c(Q334453),P159,c(Q515))
action count
action greater
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q4830453
action find_reverse_tuple_counts
relation P159
type Q515
type Q334453
action count
action filter_multi_types
action find_reverse
entity Q239597
relation P159
type Q4830453
type Q334453
[ANSWER]
[[{'concept': 'Q4830453'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) ?r WHERE { VALUES ( ?i ) { ( ontology:Q4830453 ) ( ontology:Q334453 ) } . ?w rdf:type ?i } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:P159 resource:Q239597 . { { ?c rdf:type ontology:Q4830453 } UNION { ?c rdf:type ontology:Q334453 } } } } . FILTER ( ?v > ?l ) }
Tunis Potsdam Příbram Nairobi Kopřivnice Tianjin Oakland Gwangju Addis Ababa Omaha Tokyo Otrokovice Tucson Kempten Nová Paka Saint Helier Winnipeg Cincinnati Santiago Pretoria Marseille Kabul Szolnok Riyadh Saginaw Kyiv Brno Frankfurt Békéscsaba Buenos Aires Cebu City Manila Kassel Bandung Zhengzhou Hatvan Biratnagar Český Krumlov Seoul Eger Strasbourg Smržovka Jincheng Duisburg Dresden Bucharest Minoh Inazawa Brussels Miami Ingolstadt Fukuoka Darmstadt Quezon City Riga Leipzig Braunschweig Speyer Smyrna Hanoi Ho Chi Minh City Eisenach Fuzhou Makati Offenbach am Main Zaporizhzhya Jindřichův Hradec Oxford Augsburg Sarajevo Mannheim Mainz Qujing Brasília Chongqing Kuala Lumpur Wuhu Suzhou Taiyuan Bangalore Benxi Szekszárd Salgótarján Dublin Chemnitz Yancheng Bremerhaven Kaposvár Lyon Ehingen Sopron Freiburg im Breisgau Windhoek Bamberg Brandenburg an der Havel Tehran Nanchang Caracas Jiangmen
99
action count
action greater
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type business enterprise
action find_reverse_tuple_counts
relation headquarters location
type city
type division
action count
action filter_multi_types
action find_reverse
entity Neratovice
relation headquarters location
type business enterprise
type division
[[{'concept': 'business enterprise'}, {'concept': 'division'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?v ) ?r WHERE { VALUES ( ?i ) { ( ontology:business_enterprise ) ( ontology:division ) } . ?w rdf:type ?i } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) WHERE { ?c property:headquarters_location resource:Neratovice . { { ?c rdf:type ontology:business_enterprise } UNION { ?c rdf:type ontology:division } } } } . FILTER ( ?v > ?l ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16
P206
Q17519152
USER
Which group of objects is situated nearby Canada ?
(Q16,P206,c(Q17519152))
action filter_type
action find
entity Q16
relation P206
type Q17519152
['Q16', 'P206', {'concept': 'Q17519152'}]
SELECT DISTINCT ?y WHERE { resource:Q16 property:P206 ?y . ?y rdf:type ontology:Q17519152 }
Canada
action filter_type
action find
entity Canada
relation located next to body of water
type group of objects
['Canada', 'located next to body of water', {'concept': 'group of objects'}]
SELECT DISTINCT ?y WHERE { resource:Canada property:located_next_to_body_of_water ?y . ?y rdf:type ontology:group_of_objects }
[]
group of objects
Q7347
SYSTEM
Great Lakes
Q7347
(Q16,P206,c(Q17519152))
action filter_type
action find
entity Q16
relation P206
type Q17519152
[ANSWER]
['Q16', 'P206', {'concept': 'Q17519152'}]
SELECT DISTINCT ?y WHERE { resource:Q16 property:P206 ?y . ?y rdf:type ontology:Q17519152 }
Great Lakes
Great Lakes
action filter_type
action find
entity Canada
relation located next to body of water
type group of objects
['Canada', 'located next to body of water', {'concept': 'group of objects'}]
SELECT DISTINCT ?y WHERE { resource:Canada property:located_next_to_body_of_water ?y . ?y rdf:type ontology:group_of_objects }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2318827
Q17519152
USER
And how about St Ignace Island?
(Q2318827,P206,c(Q17519152))
action filter_type
action find
entity Q2318827
relation P206
type Q17519152
['Q2318827', 'P206', {'concept': 'Q17519152'}]
SELECT DISTINCT ?k WHERE { resource:Q2318827 property:P206 ?k . ?k rdf:type ontology:Q17519152 }
St Ignace Island
action filter_type
action find
entity St Ignace Island
relation located next to body of water
type group of objects
['St Ignace Island', 'located next to body of water', {'concept': 'group of objects'}]
SELECT DISTINCT ?k WHERE { resource:St_Ignace_Island property:located_next_to_body_of_water ?k . ?k rdf:type ontology:group_of_objects }
[]
group of objects
Q7347
SYSTEM
Great Lakes
Q7347
(Q2318827,P206,c(Q17519152))
action filter_type
action find
entity Q2318827
relation P206
type Q17519152
[ANSWER]
['Q2318827', 'P206', {'concept': 'Q17519152'}]
SELECT DISTINCT ?k WHERE { resource:Q2318827 property:P206 ?k . ?k rdf:type ontology:Q17519152 }
Great Lakes
Great Lakes
action filter_type
action find
entity St Ignace Island
relation located next to body of water
type group of objects
['St Ignace Island', 'located next to body of water', {'concept': 'group of objects'}]
SELECT DISTINCT ?k WHERE { resource:St_Ignace_Island property:located_next_to_body_of_water ?k . ?k rdf:type ontology:group_of_objects }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q7347 Q673169
P361
Q337567
USER
Is Lake Bangweulu a part of that group of objects ?
(Q673169,P361,Q7347)
action is_in
entity Q673169
action find
entity Q7347
relation P361
['Q673169', 'P361', 'Q7347']
ASK WHERE { resource:Q7347 property:P361 resource:Q673169 }
Great Lakes Lake Bangweulu
action is_in
entity Lake Bangweulu
action find
entity Great Lakes
relation part of
['Lake Bangweulu', 'part of', 'Great Lakes']
ASK WHERE { resource:Great_Lakes property:part_of resource:Lake_Bangweulu }
[]
still waters
SYSTEM
NO
(Q673169,P361,Q7347)
action is_in
entity Q673169
action find
entity Q7347
relation P361
[ANSWER]
['Q673169', 'P361', 'Q7347']
ASK WHERE { resource:Q7347 property:P361 resource:Q673169 }
No
action is_in
entity Lake Bangweulu
action find
entity Great Lakes
relation part of
['Lake Bangweulu', 'part of', 'Great Lakes']
ASK WHERE { resource:Great_Lakes property:part_of resource:Lake_Bangweulu }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q1048835 Q56061 Q852446
USER
Which political territories are atleast 942 administrative territories or US administrative territories a part of ?
(c(Q56061)|c(Q852446),P17,c(Q1048835))
action atleast
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q56061
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q852446
value 942
[[{'concept': 'Q56061'}, {'concept': 'Q852446'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?c ) WHERE { ?k rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q852446 ) } } GROUP BY ?q } . FILTER ( ?c >= 942 ) }
action atleast
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation country
type political territorial entity
type administrative territorial entity of the United States
value 942
[[{'concept': 'administrative territorial entity'}, {'concept': 'administrative territorial entity of the United States'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?c ) WHERE { ?k rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:administrative_territorial_entity_of_the_United_States ) } } GROUP BY ?q } . FILTER ( ?c >= 942 ) }
[]
political territorial entity administrative territorial entity administrative territorial entity of the United States
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q664 Q16 Q408
(c(Q56061)|c(Q852446),P17,c(Q1048835))
action atleast
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q56061
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q852446
value 942
[ANSWERS] are atleast 942 administrative territories or US administrative territories a part of
[[{'concept': 'Q56061'}, {'concept': 'Q852446'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?c ) WHERE { ?k rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q852446 ) } } GROUP BY ?q } . FILTER ( ?c >= 942 ) }
Germany New Zealand Canada Australia
Germany, Australia and Canada are atleast 942 administrative territories or US administrative territories a part of
Germany Australia Canada
action atleast
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation country
type political territorial entity
type administrative territorial entity of the United States
value 942
[[{'concept': 'administrative territorial entity'}, {'concept': 'administrative territorial entity of the United States'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?c ) WHERE { ?k rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:administrative_territorial_entity_of_the_United_States ) } } GROUP BY ?q } . FILTER ( ?c >= 942 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q12302489 Q183
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with Germany and do Augustin von Kardorff belong to ?
AND((Q183,P530,c(Q1048835)), (Q12302489,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q12302489
relation P27
type Q1048835
{'AND': [['Q183', 'P530', {'concept': 'Q1048835'}], ['Q12302489', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1048835 . resource:Q183 property:P530 ?c . resource:Q12302489 property:P27 ?c }
Augustin von Kardorff Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Augustin von Kardorff
relation country of citizenship
type political territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Augustin von Kardorff', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Germany property:diplomatic_relation ?c . resource:Augustin_von_Kardorff property:country_of_citizenship ?c }
[]
political territorial entity
Q35
SYSTEM
Denmark
Q35
AND((Q183,P530,c(Q1048835)), (Q12302489,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q12302489
relation P27
type Q1048835
[ANSWER] have diplomatic relationships with Germany and do Augustin von Kardorff belong to
{'AND': [['Q183', 'P530', {'concept': 'Q1048835'}], ['Q12302489', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1048835 . resource:Q183 property:P530 ?c . resource:Q12302489 property:P27 ?c }
Denmark
Denmark have diplomatic relationships with Germany and do Augustin von Kardorff belong to
Denmark
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Augustin von Kardorff
relation country of citizenship
type political territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Augustin von Kardorff', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Germany property:diplomatic_relation ?c . resource:Augustin_von_Kardorff property:country_of_citizenship ?c }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
How many political territories are around the same number of people a civilian of as that political territory ?
(c(Q502895),P27,c(Q1048835))
action count
action approx
action find_reverse_tuple_counts
relation P27
type Q1048835
type Q502895
action count
action filter_type
action find
entity Q35
relation P27
type Q1048835
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:P27 ?x . ?a rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Q35 property:P27 ?t . ?t rdf:type ontology:Q1048835 } } . FILTER ( ?m = ?v ) }
action count
action approx
action find_reverse_tuple_counts
relation country of citizenship
type political territorial entity
type common name
action count
action filter_type
action find
entity Denmark
relation country of citizenship
type political territorial entity
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:country_of_citizenship ?x . ?a rdf:type ontology:common_name . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Denmark property:country_of_citizenship ?t . ?t rdf:type ontology:political_territorial_entity } } . FILTER ( ?m = ?v ) }
[]
political territorial entity common name
SYSTEM
66
Q635755 Q668384 Q1000 Q193714 Q1747689 Q746558 Q838261 Q785 Q193619 Q691 Q769 Q685 Q699964 Q763 Q1232887 Q664 Q766 Q22880 Q170361 Q1054923 Q10557 Q5720 Q505610 Q693551 Q13353 Q494354 Q650489 Q781 Q5705 Q757 Q16 Q168159 Q5785 Q35 Q109128 Q3306663 Q190959 Q11266977 Q223793 Q3995 Q130842 Q40 Q18221 Q650682 Q778 Q408 Q9676 Q217829 Q100166 Q9648 Q234 Q4040 Q2991382 Q309460 Q129286 Q168651 Q3908 Q9337 Q23635 Q192184 Q25228 Q31747 Q25305 Q79965 Q157070 Q170604
(c(Q502895),P27,c(Q1048835))
action count
action approx
action find_reverse_tuple_counts
relation P27
type Q1048835
type Q502895
action count
action filter_type
action find
entity Q35
relation P27
type Q1048835
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:P27 ?x . ?a rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Q35 property:P27 ?t . ?t rdf:type ontology:Q1048835 } } . FILTER ( ?m = ?v ) }
Odieta Medellín Gabon Mandatory Palestine Ancient Rome Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Papua New Guinea Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis County of Savoy New Zealand Jamaica Electoral Palatinate Saar British Hong Kong Swabia Valencian Country Flintshire Landgraviate of Hesse-Darmstadt Montserrat Kara-Khanid Khanate Margraviate of Baden Antigua and Barbuda Catalonia Saint Vincent and the Grenadines Canada Anglesey Cayman Islands Denmark Gwynedd Merthyr Tydfil County Borough Transvaal Epirus Kingdom of Etruria Basque Country Greater Lebanon Austria Turks and Caicos Islands Denbighshire The Bahamas Australia Isle of Man Ceredigion Orkney Islands Falkland Islands Flemish Region Aragon County of Provence County of Hainaut British Raj Landgraviate of Hesse-Kassel Galicia Flemish Region Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands Golden Horde County of Flanders New France
66
action count
action approx
action find_reverse_tuple_counts
relation country of citizenship
type political territorial entity
type common name
action count
action filter_type
action find
entity Denmark
relation country of citizenship
type political territorial entity
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:country_of_citizenship ?x . ?a rdf:type ontology:common_name . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Denmark property:country_of_citizenship ?t . ?t rdf:type ontology:political_territorial_entity } } . FILTER ( ?m = ?v ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have ambassadorial relations with max number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?g ) WHERE { ?n property:P530 ?l . ?n rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } GROUP BY ?n } } . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?m ) WHERE { ?d property:P530 ?o . ?d rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?d } . FILTER ( ?m = ?q ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?g ) WHERE { ?n property:diplomatic_relation ?l . ?n rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?n } } . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?m ) WHERE { ?d property:diplomatic_relation ?o . ?d rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?d } . FILTER ( ?m = ?q ) }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
To [ANSWER] have ambassadorial relations with max number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?g ) WHERE { ?n property:P530 ?l . ?n rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q1048835 } GROUP BY ?n } } . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?m ) WHERE { ?d property:P530 ?o . ?d rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?d } . FILTER ( ?m = ?q ) }
Australia
To Australia have ambassadorial relations with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?g ) WHERE { ?n property:diplomatic_relation ?l . ?n rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?n } } . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?m ) WHERE { ?d property:diplomatic_relation ?o . ?d rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?d } . FILTER ( ?m = ?q ) }
[]