Simple Question (Direct)
Simple Question
Q9162093
P140
Q879146
USER
Which Christian denomination is the religion of Augustin Weltzel ?
(Q9162093,P140,c(Q879146))
action filter_type
action find
entity Q9162093
relation P140
type Q879146
['Q9162093', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?p WHERE { resource:Q9162093 property:P140 ?p . ?p rdf:type ontology:Q879146 }
Augustin Weltzel
action filter_type
action find
entity Augustin Weltzel
relation religion
type Christian denomination
['Augustin Weltzel', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?p WHERE { resource:Augustin_Weltzel property:religion ?p . ?p rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q9162093,P140,c(Q879146))
action filter_type
action find
entity Q9162093
relation P140
type Q879146
Church [ANSWER] is the religion of Augustin Weltzel
['Q9162093', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?p WHERE { resource:Q9162093 property:P140 ?p . ?p rdf:type ontology:Q879146 }
Roman Catholic Church
Church Roman Catholic Church is the religion of Augustin Weltzel
Roman Catholic Church
action filter_type
action find
entity Augustin Weltzel
relation religion
type Christian denomination
['Augustin Weltzel', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?p WHERE { resource:Augustin_Weltzel property:religion ?p . ?p rdf:type ontology:Christian_denomination }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9162093
P20
Q486972
USER
Where did that person expire ?
(Q9592,P20,c(Q486972))
action filter_type
action find
entity Q9162093
relation P20
type Q486972
['Q9592', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { resource:Q9162093 property:P20 ?d . ?d rdf:type ontology:Q486972 }
Augustin Weltzel
action filter_type
action find
entity Augustin Weltzel
relation place of death
type human settlement
['Roman Catholic Church', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { resource:Augustin_Weltzel property:place_of_death ?d . ?d rdf:type ontology:human_settlement }
[]
human settlement
Q672733
SYSTEM
Tworków
Q672733
(Q9592,P20,c(Q486972))
action filter_type
action find
entity Q9162093
relation P20
type Q486972
That person expired in [ANSWER]
['Q9592', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { resource:Q9162093 property:P20 ?d . ?d rdf:type ontology:Q486972 }
Tworków
That person expired in Tworków
Tworków
action filter_type
action find
entity Augustin Weltzel
relation place of death
type human settlement
['Roman Catholic Church', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { resource:Augustin_Weltzel property:place_of_death ?d . ?d rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9162093
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q672733,P19,c(Q56061))
action filter_type
action find
entity Q9162093
relation P19
type Q56061
['Q672733', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q9162093 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Augustin Weltzel
action filter_type
action find
entity Augustin Weltzel
relation place of birth
type administrative territorial entity
['Tworków', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Augustin_Weltzel property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1025302
SYSTEM
Jelcz-Laskowice
Q1025302
(Q672733,P19,c(Q56061))
action filter_type
action find
entity Q9162093
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q672733', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q9162093 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Jelcz-Laskowice
Jelcz-Laskowice is the place of birth of that person
Jelcz-Laskowice
action filter_type
action find
entity Augustin Weltzel
relation place of birth
type administrative territorial entity
['Tworków', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Augustin_Weltzel property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7127559 Q9162093
P27 P17
Q1048835
USER
Which political territories do Augustin Weltzel belong to or are Palinkopf located in ?
OR((Q9162093,P27,c(Q1048835)), (Q7127559,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q9162093
relation P27
action find
entity Q7127559
relation P17
type Q1048835
{'OR': [['Q9162093', 'P27', {'concept': 'Q1048835'}], ['Q7127559', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q9162093 property:P27 ?b } UNION { resource:Q7127559 property:P17 ?b } } . ?b rdf:type ontology:Q1048835 }
Palinkopf Augustin Weltzel
action filter_type
action union
action find
entity Augustin Weltzel
relation country of citizenship
action find
entity Palinkopf
relation country
type political territorial entity
{'OR': [['Augustin Weltzel', 'country of citizenship', {'concept': 'political territorial entity'}], ['Palinkopf', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Augustin_Weltzel property:country_of_citizenship ?b } UNION { resource:Palinkopf property:country ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q40
SYSTEM
Germany, Austria
Q183 Q40
OR((Q9162093,P27,c(Q1048835)), (Q7127559,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q9162093
relation P27
action find
entity Q7127559
relation P17
type Q1048835
Augustin Weltzel belong to West [ANSWERS]
{'OR': [['Q9162093', 'P27', {'concept': 'Q1048835'}], ['Q7127559', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q9162093 property:P27 ?b } UNION { resource:Q7127559 property:P17 ?b } } . ?b rdf:type ontology:Q1048835 }
Germany Austria
Augustin Weltzel belong to West Germany and Austria
Germany Austria
action filter_type
action union
action find
entity Augustin Weltzel
relation country of citizenship
action find
entity Palinkopf
relation country
type political territorial entity
{'OR': [['Augustin Weltzel', 'country of citizenship', {'concept': 'political territorial entity'}], ['Palinkopf', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Augustin_Weltzel property:country_of_citizenship ?b } UNION { resource:Palinkopf property:country ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q582026 Q9162093
P47 P27
Q1048835
USER
Which political territories are the native countriesof Augustin Weltzel or have a shared border with Castielfabib ?
OR((Q9162093,P27,c(Q1048835)), (Q582026,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q9162093
relation P27
action find
entity Q582026
relation P47
type Q1048835
{'OR': [['Q9162093', 'P27', {'concept': 'Q1048835'}], ['Q582026', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q9162093 property:P27 ?y } UNION { resource:Q582026 property:P47 ?y } } . ?y rdf:type ontology:Q1048835 }
Castielfabib Augustin Weltzel
action filter_type
action union
action find
entity Augustin Weltzel
relation country of citizenship
action find
entity Castielfabib
relation shares border with
type political territorial entity
{'OR': [['Augustin Weltzel', 'country of citizenship', {'concept': 'political territorial entity'}], ['Castielfabib', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Augustin_Weltzel property:country_of_citizenship ?y } UNION { resource:Castielfabib property:shares_border_with ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1641534 Q934397 Q1769373 Q183 Q1650911 Q80114 Q1651621 Q1752006 Q669114
SYSTEM
Tormón, Vallanca, Libros, Germany, Veguillas de la Sierra, Torrebaja, El Cuervo, Salvacañete, Tramacastiel
Q1641534 Q934397 Q1769373 Q183 Q1650911 Q80114 Q1651621 Q1752006 Q669114
OR((Q9162093,P27,c(Q1048835)), (Q582026,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q9162093
relation P27
action find
entity Q582026
relation P47
type Q1048835
[ANSWERS] are the native countriesof Augustin Weltzel or have a shared border with Castielfabib
{'OR': [['Q9162093', 'P27', {'concept': 'Q1048835'}], ['Q582026', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q9162093 property:P27 ?y } UNION { resource:Q582026 property:P47 ?y } } . ?y rdf:type ontology:Q1048835 }
Tormón Vallanca Libros Germany Veguillas de la Sierra Torrebaja El Cuervo Salvacañete Tramacastiel
Tormón, Vallanca, Libros, Germany, Veguillas de la Sierra, Torrebaja, El Cuervo, Salvacañete and Tramacastiel are the native countriesof Augustin Weltzel or have a shared border with Castielfabib
Tormón Vallanca Libros Germany Veguillas de la Sierra Torrebaja El Cuervo Salvacañete Tramacastiel
action filter_type
action union
action find
entity Augustin Weltzel
relation country of citizenship
action find
entity Castielfabib
relation shares border with
type political territorial entity
{'OR': [['Augustin Weltzel', 'country of citizenship', {'concept': 'political territorial entity'}], ['Castielfabib', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Augustin_Weltzel property:country_of_citizenship ?y } UNION { resource:Castielfabib property:shares_border_with ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q582026
P47
Q486972 Q1048835
USER
How many human settlements and political territories have a shared border with Castielfabib ?
(Q582026,P47,c(Q486972)) (Q582026,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q582026
relation P47
type Q486972
action filter_type
action find
entity Q582026
relation P47
type Q1048835
['Q582026', 'P47', {'concept': 'Q486972'}] ['Q582026', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?c ) { ( ontology:Q486972 ) ( ontology:Q1048835 ) } . ?v rdf:type ?c }
Castielfabib
action count
action union
action filter_type
action find
entity Castielfabib
relation shares border with
type human settlement
action filter_type
action find
entity Castielfabib
relation shares border with
type political territorial entity
['Castielfabib', 'shares border with', {'concept': 'human settlement'}] ['Castielfabib', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?c ) { ( ontology:human_settlement ) ( ontology:political_territorial_entity ) } . ?v rdf:type ?c }
[]
human settlement political territorial entity
SYSTEM
1 human settlements and 8 political territories
Q1641534 Q934397 Q1769373 Q1650911 Q355767 Q80114 Q1651621 Q1752006 Q669114
(Q582026,P47,c(Q486972)) (Q582026,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q582026
relation P47
type Q486972
action filter_type
action find
entity Q582026
relation P47
type Q1048835
[ANSWER]
['Q582026', 'P47', {'concept': 'Q486972'}] ['Q582026', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?c ) { ( ontology:Q486972 ) ( ontology:Q1048835 ) } . ?v rdf:type ?c }
Tormón Vallanca Libros Veguillas de la Sierra Ademuz Torrebaja El Cuervo Salvacañete Tramacastiel
1 human settlements and 8 political territories
action count
action union
action filter_type
action find
entity Castielfabib
relation shares border with
type human settlement
action filter_type
action find
entity Castielfabib
relation shares border with
type political territorial entity
['Castielfabib', 'shares border with', {'concept': 'human settlement'}] ['Castielfabib', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?c ) { ( ontology:human_settlement ) ( ontology:political_territorial_entity ) } . ?v rdf:type ?c }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q298
P530
Q1048835 Q15617994
USER
How many administrative territories have ambassadorial relations with more number of political territories than Chile ?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q298
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?l ) WHERE { ?q property:P530 ?k . ?k rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Q298 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?l > ?r ) }
Chile
action count
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 Chile
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?l ) WHERE { ?q property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Chile property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l > ?r ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
37
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q889 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q230 Q20 Q27 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q298
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?l ) WHERE { ?q property:P530 ?k . ?k rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Q298 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?l > ?r ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil Afghanistan South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Georgia Norway Ireland Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
37
action count
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 Chile
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?l ) WHERE { ?q property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { resource:Chile property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l > ?r ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q486972 Q1048835 Q15617994
USER
How many human settlements are twin cities of around 4 political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P190,c(Q486972))
action count
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q486972
type Q15617994
value 4
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?p WHERE { { ?o property:P190 ?p . ?p rdf:type ontology:Q486972 . ?o rdf:type ontology:Q1048835 } UNION { ?o property:P190 ?p . ?p rdf:type ontology:Q486972 . ?o rdf:type ontology:Q15617994 } } GROUP BY ?p } . FILTER ( ?v = 4 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type human settlement
type designation for an administrative territorial entity
value 4
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?p WHERE { { ?o property:sister_city ?p . ?p rdf:type ontology:human_settlement . ?o rdf:type ontology:political_territorial_entity } UNION { ?o property:sister_city ?p . ?p rdf:type ontology:human_settlement . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . FILTER ( ?v = 4 ) }
[]
human settlement political territorial entity designation for an administrative territorial entity
SYSTEM
3
Q263107 Q62868 Q104731
(c(Q1048835)|c(Q15617994),P190,c(Q486972))
action count
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q486972
type Q15617994
value 4
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?p WHERE { { ?o property:P190 ?p . ?p rdf:type ontology:Q486972 . ?o rdf:type ontology:Q1048835 } UNION { ?o property:P190 ?p . ?p rdf:type ontology:Q486972 . ?o rdf:type ontology:Q15617994 } } GROUP BY ?p } . FILTER ( ?v = 4 ) }
Judenburg Koszalin Gorzów Wielkopolski
3
action count
action approx
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type human settlement
type designation for an administrative territorial entity
value 4
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?p WHERE { { ?o property:sister_city ?p . ?p rdf:type ontology:human_settlement . ?o rdf:type ontology:political_territorial_entity } UNION { ?o property:sister_city ?p . ?p rdf:type ontology:human_settlement . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . FILTER ( ?v = 4 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q769
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with more number of political territories than Grenada ?
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?r ) WHERE { ?t property:P530 ?d . ?t rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?r > ?w ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q769 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } }
Grenada
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?r ) WHERE { ?t property:diplomatic_relation ?d . ?t rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?r > ?w ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Grenada property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with more number of political territories than Grenada
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?r ) WHERE { ?t property:P530 ?d . ?t rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?r > ?w ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q769 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } }
Austria Germany Australia Denmark Canada New Zealand
Germany, Australia and Denmark have diplomatic relationships with more number of political territories than Grenada
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?r ) WHERE { ?t property:diplomatic_relation ?d . ?t rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?r > ?w ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Grenada property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q16
P530
Q1048835 Q1048835
USER
And also tell me about Canada?
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?i ) WHERE { ?c rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q1048835 . ?c property:P530 ?r } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?m } } . FILTER ( ?i > ?o ) }
Canada
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?i ) WHERE { ?c rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?c property:diplomatic_relation ?r } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?m } } . FILTER ( ?i > ?o ) }
[]
political territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?i ) WHERE { ?c rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q1048835 . ?c property:P530 ?r } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?m } } . FILTER ( ?i > ?o ) }
Germany Australia
Germany Australia
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?i ) WHERE { ?c rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?c property:diplomatic_relation ?r } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?m } } . FILTER ( ?i > ?o ) }
[]