Simple Question (Direct)
Simple Question
Q85417
P39
Q12737077
USER
What were the positions held by Paul Hinschius ?
(Q85417,P39,c(Q12737077))
action filter_type
action find
entity Q85417
relation P39
type Q12737077
['Q85417', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q85417 property:P39 ?q }
Paul Hinschius
action filter_type
action find
entity Paul Hinschius
relation position held
type occupation
['Paul Hinschius', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Paul_Hinschius property:position_held ?q }
[]
occupation
Q17854096 Q18627576
SYSTEM
member of the Reichstag of the German Empire, Member of the Prussian House of Lords
Q17854096 Q18627576
(Q85417,P39,c(Q12737077))
action filter_type
action find
entity Q85417
relation P39
type Q12737077
The positions held by Paul Hinschius were [ANSWERS]
['Q85417', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q85417 property:P39 ?q }
member of the Reichstag of the German Empire Member of the Prussian House of Lords
The positions held by Paul Hinschius were member of the Reichstag of the German Empire and Member of the Prussian House of Lords
member of the Reichstag of the German Empire Member of the Prussian House of Lords
action filter_type
action find
entity Paul Hinschius
relation position held
type occupation
['Paul Hinschius', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Paul_Hinschius property:position_held ?q }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17854096
P361
Q1752346
USER
What is that occupation a portion of ?
(Q17854096,P361,c(Q1752346))
action filter_type
action find
entity Q17854096
relation P361
type Q1752346
['Q17854096', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { resource:Q17854096 property:P361 ?k . ?k rdf:type ontology:Q1752346 }
member of the Reichstag of the German Empire
action filter_type
action find
entity member of the Reichstag of the German Empire
relation part of
type assembly
['member of the Reichstag of the German Empire', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of ?k . ?k rdf:type ontology:assembly }
[]
assembly
Clarification for simple ques.
Q17854096
SYSTEM
Did you mean member of the Reichstag of the German Empire ?
Q17854096 Q18627576
(Q17854096,P361,c(Q1752346)) (Q18627576,P361,c(Q1752346))
[ANSWER]
['Q17854096', 'P361', {'concept': 'Q1752346'}] ['Q18627576', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { resource:Q17854096 property:P361 ?k . ?k rdf:type ontology:Q1752346 }
member of the Reichstag of the German Empire Member of the Prussian House of Lords
Did you mean member of the Reichstag of the German Empire ?
member of the Reichstag of the German Empire
['member of the Reichstag of the German Empire', 'part of', {'concept': 'assembly'}] ['Member of the Prussian House of Lords', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of ?k . ?k rdf:type ontology:assembly }
[]
Simple Question (Coreferenced)
USER
Yes
(Q17854096,P361,c(Q1752346))
['Q17854096', 'P361', {'concept': 'Q1752346'}]
['member of the Reichstag of the German Empire', 'part of', {'concept': 'assembly'}]
[]
Q160208
SYSTEM
Reichstag
Q160208
(Q17854096,P361,c(Q1752346))
action filter_type
action find
entity Q17854096
relation P361
type Q1752346
That occupation a portion of is the [ANSWER]
['Q17854096', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { resource:Q17854096 property:P361 ?k . ?k rdf:type ontology:Q1752346 }
Reichstag
That occupation a portion of is the Reichstag
Reichstag
action filter_type
action find
entity member of the Reichstag of the German Empire
relation part of
type assembly
['member of the Reichstag of the German Empire', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { resource:member_of_the_Reichstag_of_the_German_Empire property:part_of ?k . ?k rdf:type ontology:assembly }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P805
Q15617994 Q1752346
USER
Which administrative territories are max number of assemblies a subject ?
(c(Q1752346),P805,Q856076)
action argmax
action find_reverse_tuple_counts
relation P805
type Q15617994
type Q1752346
[{'concept': 'Q1752346'}, 'P805', 'Q856076']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?x ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:P805 ?n . ?n rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1752346 } GROUP BY ?n } } . FILTER ( ?f = ?x ) . { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:P805 ?m . ?m rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1752346 } GROUP BY ?m } }
action argmax
action find_reverse_tuple_counts
relation subject of
type designation for an administrative territorial entity
type assembly
[{'concept': 'assembly'}, 'subject of', 'municipality of Finland']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?x ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:subject_of ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:assembly } GROUP BY ?n } } . FILTER ( ?f = ?x ) . { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:subject_of ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:assembly } GROUP BY ?m } }
[]
designation for an administrative territorial entity assembly
Q127448
SYSTEM
municipality of Sweden
Q127448
(c(Q1752346),P805,Q856076)
action argmax
action find_reverse_tuple_counts
relation P805
type Q15617994
type Q1752346
The [ANSWER] is max number of assemblies a subject
[{'concept': 'Q1752346'}, 'P805', 'Q856076']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?x ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:P805 ?n . ?n rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1752346 } GROUP BY ?n } } . FILTER ( ?f = ?x ) . { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:P805 ?m . ?m rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1752346 } GROUP BY ?m } }
municipality of Sweden
The municipality of Sweden is max number of assemblies a subject
municipality of Sweden
action argmax
action find_reverse_tuple_counts
relation subject of
type designation for an administrative territorial entity
type assembly
[{'concept': 'assembly'}, 'subject of', 'municipality of Finland']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?x ) { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:subject_of ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:assembly } GROUP BY ?n } } . FILTER ( ?f = ?x ) . { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:subject_of ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:assembly } GROUP BY ?m } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q127448 Q34
P17
Q15617994
USER
Is municipality of Sweden situated in Sweden ?
(Q127448,P17,Q34)
action is_in
entity Q34
action find
entity Q127448
relation P17
['Q127448', 'P17', 'Q34']
ASK WHERE { resource:Q127448 property:P17 resource:Q34 }
municipality of Sweden Sweden
action is_in
entity Sweden
action find
entity municipality of Sweden
relation country
['municipality of Sweden', 'country', 'Sweden']
ASK WHERE { resource:municipality_of_Sweden property:country resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q127448,P17,Q34)
action is_in
entity Q34
action find
entity Q127448
relation P17
[ANSWER]
['Q127448', 'P17', 'Q34']
ASK WHERE { resource:Q127448 property:P17 resource:Q34 }
Yes
action is_in
entity Sweden
action find
entity municipality of Sweden
relation country
['municipality of Sweden', 'country', 'Sweden']
ASK WHERE { resource:municipality_of_Sweden property:country resource:Sweden }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11425939 Q127448
P17
Q15617994
USER
Which administrative territories are municipality of Sweden or Jōgasaki-Kaigan Station situated in ?
OR((Q127448,P17,c(Q15617994)), (Q11425939,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q127448
relation P17
action find
entity Q11425939
relation P17
type Q15617994
{'OR': [['Q127448', 'P17', {'concept': 'Q15617994'}], ['Q11425939', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q11425939 property:P17 ?w } UNION { resource:Q127448 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Jōgasaki-Kaigan Station municipality of Sweden
action filter_type
action union
action find
entity municipality of Sweden
relation country
action find
entity Jōgasaki-Kaigan Station
relation country
type designation for an administrative territorial entity
{'OR': [['municipality of Sweden', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jōgasaki-Kaigan Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Jōgasaki-Kaigan_Station property:country ?w } UNION { resource:municipality_of_Sweden property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q34
SYSTEM
Japan, Sweden
Q17 Q34
OR((Q127448,P17,c(Q15617994)), (Q11425939,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q127448
relation P17
action find
entity Q11425939
relation P17
type Q15617994
Municipality of Sweden or Jōgasaki- Kaigan Station are situated in both [ANSWERS]
{'OR': [['Q127448', 'P17', {'concept': 'Q15617994'}], ['Q11425939', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q11425939 property:P17 ?w } UNION { resource:Q127448 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Japan Sweden
Municipality of Sweden or Jōgasaki- Kaigan Station are situated in both Japan and Sweden
Japan Sweden
action filter_type
action union
action find
entity municipality of Sweden
relation country
action find
entity Jōgasaki-Kaigan Station
relation country
type designation for an administrative territorial entity
{'OR': [['municipality of Sweden', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Jōgasaki-Kaigan Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Jōgasaki-Kaigan_Station property:country ?w } UNION { resource:municipality_of_Sweden property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have diplomatic relations with those administrative territories ?
(Q183,P530,Q17) (Q183,P530,Q34)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q17'] ['Q183', 'P530', 'Q34']
ASK WHERE { resource:Q183 property:P530 ?l . VALUES ( ?l ) { ( resource:Q17 ) ( resource:Q34 ) } }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Japan'] ['Germany', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Germany property:diplomatic_relation ?l . VALUES ( ?l ) { ( resource:Japan ) ( resource:Sweden ) } }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q17) (Q183,P530,Q34)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q17'] ['Q183', 'P530', 'Q34']
ASK WHERE { resource:Q183 property:P530 ?l . VALUES ( ?l ) { ( resource:Q17 ) ( resource:Q34 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Japan'] ['Germany', 'diplomatic relation', 'Sweden']
ASK WHERE { resource:Germany property:diplomatic_relation ?l . VALUES ( ?l ) { ( resource:Japan ) ( resource:Sweden ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1016
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with greater number of administrative territories than Libya ?
(c(Q15617994),P530,c(Q15617994))
action greater
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 ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?b ) WHERE { ?r property:P530 ?c . ?r rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { resource:Q1016 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?x ) }
Libya
action greater
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 ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?b ) WHERE { ?r property:diplomatic_relation ?c . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { resource:Libya property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?x ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q142 Q145 Q148 Q403 Q159 Q43 Q155 Q30 Q38 Q17 Q79 Q1011
(c(Q15617994),P530,c(Q15617994))
action greater
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 a diplomatic relationship with greater number of administrative territories than Libya
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?b ) WHERE { ?r property:P530 ?c . ?r rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { resource:Q1016 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?x ) }
Israel Yemen India France United Kingdom People's Republic of China Serbia Russia Turkey Brazil United States of America Italy Japan Egypt Cape Verde
Italy, Brazil and United States of America have a diplomatic relationship with greater number of administrative territories than Libya
Italy Brazil United States of America
action greater
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 ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?b ) WHERE { ?r property:diplomatic_relation ?c . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { resource:Libya property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1020
P530
Q15617994 Q15617994
USER
And what about Malawi?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1020
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?t ) WHERE { ?v rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 . ?b property:P530 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q1020 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?t > ?g ) }
Malawi
action greater
action find_reverse_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 Malawi
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 ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?t ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Malawi property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t > ?g ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q236 Q230 Q233 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q219 Q916 Q1009 Q1008 Q971 Q874 Q79 Q77 Q858 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1020
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?t ) WHERE { ?v rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 . ?b property:P530 ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q1020 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?t > ?g ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Montenegro Georgia Malta Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Angola Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Egypt Uruguay Syria United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
Italy Brazil United States of America
action greater
action find_reverse_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 Malawi
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 ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?t ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?v } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Malawi property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t > ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with greater number of administrative territories than Canada ?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?y ) WHERE { ?m property:P530 ?r . ?m rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Q16 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?y > ?n ) }
Canada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?y ) WHERE { ?m property:diplomatic_relation ?r . ?m rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Canada property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?y > ?n ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?y ) WHERE { ?m property:P530 ?r . ?m rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Q16 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?y > ?n ) }
Germany Australia
2
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?y ) WHERE { ?m property:diplomatic_relation ?r . ?m rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Canada property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?y > ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q769
P530
Q1048835 Q15617994
USER
And how about Grenada?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?i ) WHERE { ?j rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 . ?j property:P530 ?d } GROUP BY ?j } . FILTER ( ?i > ?n ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y rdf:type ontology:Q15617994 . resource:Q769 property:P530 ?y } } }
Grenada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
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 ( ?j ) AS ?k ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?i ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?d } GROUP BY ?j } . FILTER ( ?i > ?n ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Grenada property:diplomatic_relation ?y } } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?i ) WHERE { ?j rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 . ?j property:P530 ?d } GROUP BY ?j } . FILTER ( ?i > ?n ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y rdf:type ontology:Q15617994 . resource:Q769 property:P530 ?y } } }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
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 ( ?j ) AS ?k ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?i ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?d } GROUP BY ?j } . FILTER ( ?i > ?n ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Grenada property:diplomatic_relation ?y } } }
[]