Simple Question (Direct)
Simple Question
Q74291
P27
Q1048835
USER
Which political territory is Karl Otto Weber an inhabitant of ?
(Q74291,P27,c(Q1048835))
action filter_type
action find
entity Q74291
relation P27
type Q1048835
['Q74291', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1048835 . resource:Q74291 property:P27 ?w }
Karl Otto Weber
action filter_type
action find
entity Karl Otto Weber
relation country of citizenship
type political territorial entity
['Karl Otto Weber', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:political_territorial_entity . resource:Karl_Otto_Weber property:country_of_citizenship ?w }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q74291,P27,c(Q1048835))
action filter_type
action find
entity Q74291
relation P27
type Q1048835
The [ANSWER] is Karl Otto Weber an inhabitant of
['Q74291', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1048835 . resource:Q74291 property:P27 ?w }
Germany
The Germany is Karl Otto Weber an inhabitant of
Germany
action filter_type
action find
entity Karl Otto Weber
relation country of citizenship
type political territorial entity
['Karl Otto Weber', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:political_territorial_entity . resource:Karl_Otto_Weber property:country_of_citizenship ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q74291
P512
Q3412758
USER
Which qualification does that person hold ?
(Q183,P512,c(Q3412758))
action filter_type
action find
entity Q74291
relation P512
type Q3412758
['Q183', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?u WHERE { resource:Q74291 property:P512 ?u . ?u rdf:type ontology:Q3412758 }
Karl Otto Weber
action filter_type
action find
entity Karl Otto Weber
relation academic degree
type qualification
['Germany', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?u WHERE { resource:Karl_Otto_Weber property:academic_degree ?u . ?u rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q183,P512,c(Q3412758))
action filter_type
action find
entity Q74291
relation P512
type Q3412758
That person holds a [ANSWER]
['Q183', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?u WHERE { resource:Q74291 property:P512 ?u . ?u rdf:type ontology:Q3412758 }
doctoral degree
That person holds a doctoral degree
doctoral degree
action filter_type
action find
entity Karl Otto Weber
relation academic degree
type qualification
['Germany', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?u WHERE { resource:Karl_Otto_Weber property:academic_degree ?u . ?u rdf:type ontology:qualification }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q849697 Q521410
P512
Q502895
USER
Does Shaul Tchernichovsky have the diploma that qualification ?
(Q521410,P512,Q849697)
action is_in
entity Q849697
action find
entity Q521410
relation P512
['Q521410', 'P512', 'Q849697']
ASK WHERE { resource:Q521410 property:P512 resource:Q849697 }
doctoral degree Shaul Tchernichovsky
action is_in
entity doctoral degree
action find
entity Shaul Tchernichovsky
relation academic degree
['Shaul Tchernichovsky', 'academic degree', 'doctoral degree']
ASK WHERE { resource:Shaul_Tchernichovsky property:academic_degree resource:doctoral_degree }
[]
common name
SYSTEM
YES
(Q521410,P512,Q849697)
action is_in
entity Q849697
action find
entity Q521410
relation P512
[ANSWER]
['Q521410', 'P512', 'Q849697']
ASK WHERE { resource:Q521410 property:P512 resource:Q849697 }
Yes
action is_in
entity doctoral degree
action find
entity Shaul Tchernichovsky
relation academic degree
['Shaul Tchernichovsky', 'academic degree', 'doctoral degree']
ASK WHERE { resource:Shaul_Tchernichovsky property:academic_degree resource:doctoral_degree }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q74291 Q1794
P19
Q515
USER
Was Karl Otto Weber born in Frankfurt ?
(Q74291,P19,Q1794)
action is_in
entity Q1794
action find
entity Q74291
relation P19
['Q74291', 'P19', 'Q1794']
ASK WHERE { resource:Q74291 property:P19 resource:Q1794 }
Karl Otto Weber Frankfurt
action is_in
entity Frankfurt
action find
entity Karl Otto Weber
relation place of birth
['Karl Otto Weber', 'place of birth', 'Frankfurt']
ASK WHERE { resource:Karl_Otto_Weber property:place_of_birth resource:Frankfurt }
[]
city
SYSTEM
YES
(Q74291,P19,Q1794)
action is_in
entity Q1794
action find
entity Q74291
relation P19
[ANSWER]
['Q74291', 'P19', 'Q1794']
ASK WHERE { resource:Q74291 property:P19 resource:Q1794 }
Yes
action is_in
entity Frankfurt
action find
entity Karl Otto Weber
relation place of birth
['Karl Otto Weber', 'place of birth', 'Frankfurt']
ASK WHERE { resource:Karl_Otto_Weber property:place_of_birth resource:Frankfurt }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q183 Q17022464 Q691265
P530
Q15617994
USER
Does Germany have diplomatic associations with Montabella Community Schools and Mont-Terrible ?
(Q183,P530,Q17022464) (Q183,P530,Q691265)
action is_in
entity Q183
action intersection
action find_reverse
entity Q17022464
relation P530
action find_reverse
entity Q691265
relation P530
['Q183', 'P530', 'Q17022464'] ['Q183', 'P530', 'Q691265']
ASK WHERE { resource:Q183 property:P530 resource:Q17022464 . resource:Q183 property:P530 resource:Q691265 }
Germany Montabella Community Schools Mont-Terrible
action is_in
entity Germany
action intersection
action find_reverse
entity Montabella Community Schools
relation diplomatic relation
action find_reverse
entity Mont-Terrible
relation diplomatic relation
['Germany', 'diplomatic relation', 'Montabella Community Schools'] ['Germany', 'diplomatic relation', 'Mont-Terrible']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Montabella_Community_Schools . resource:Germany property:diplomatic_relation resource:Mont-Terrible }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q183,P530,Q17022464) (Q183,P530,Q691265)
action is_in
entity Q183
action intersection
action find_reverse
entity Q17022464
relation P530
action find_reverse
entity Q691265
relation P530
[ANSWER]
['Q183', 'P530', 'Q17022464'] ['Q183', 'P530', 'Q691265']
ASK WHERE { resource:Q183 property:P530 resource:Q17022464 . resource:Q183 property:P530 resource:Q691265 }
No
action is_in
entity Germany
action intersection
action find_reverse
entity Montabella Community Schools
relation diplomatic relation
action find_reverse
entity Mont-Terrible
relation diplomatic relation
['Germany', 'diplomatic relation', 'Montabella Community Schools'] ['Germany', 'diplomatic relation', 'Mont-Terrible']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Montabella_Community_Schools . resource:Germany property:diplomatic_relation resource:Mont-Terrible }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q74291 Q1794
P19
Q515
USER
Is Frankfurt the place of birth of that person ?
(Q74291,P19,Q1794)
action is_in
entity Q1794
action find
entity Q74291
relation P19
['Q74291', 'P19', 'Q1794']
ASK WHERE { resource:Q74291 property:P19 resource:Q1794 }
Karl Otto Weber Frankfurt
action is_in
entity Frankfurt
action find
entity Karl Otto Weber
relation place of birth
['Karl Otto Weber', 'place of birth', 'Frankfurt']
ASK WHERE { resource:Karl_Otto_Weber property:place_of_birth resource:Frankfurt }
[]
city
SYSTEM
YES
(Q74291,P19,Q1794)
action is_in
entity Q1794
action find
entity Q74291
relation P19
[ANSWER]
['Q74291', 'P19', 'Q1794']
ASK WHERE { resource:Q74291 property:P19 resource:Q1794 }
Yes
action is_in
entity Frankfurt
action find
entity Karl Otto Weber
relation place of birth
['Karl Otto Weber', 'place of birth', 'Frankfurt']
ASK WHERE { resource:Karl_Otto_Weber property:place_of_birth resource:Frankfurt }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q695
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with more number of political territories than Palau ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q695
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Q695 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?a > ?e ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?a ) WHERE { ?k property:P530 ?s . ?s rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } }
Palau
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 Palau
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Palau property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a > ?e ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?a ) WHERE { ?k property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q695
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with more number of political territories than Palau
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Q695 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?a > ?e ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?a ) WHERE { ?k property:P530 ?s . ?s rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic relationships with more number of political territories than Palau
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Palau
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Palau property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a > ?e ) . { SELECT DISTINCT ?k ( COUNT ( ?s ) AS ?a ) WHERE { ?k property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q191
P530
Q15617994 Q1048835
USER
And how about Estonia?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q191
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?z ) WHERE { ?f property:P530 ?j . ?f rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { ?e rdf:type ontology:Q15617994 . resource:Q191 property:P530 ?e } } . FILTER ( ?z > ?x ) }
Estonia
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 Estonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?z ) WHERE { ?f property:diplomatic_relation ?j . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Estonia property:diplomatic_relation ?e } } . FILTER ( ?z > ?x ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q191
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?z ) WHERE { ?f property:P530 ?j . ?f rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { ?e rdf:type ontology:Q15617994 . resource:Q191 property:P530 ?e } } . FILTER ( ?z > ?x ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Estonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?z ) WHERE { ?f property:diplomatic_relation ?j . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Estonia property:diplomatic_relation ?e } } . FILTER ( ?z > ?x ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q20667921 Q486972 Q15617994
USER
Which administrative territories have max number of french administrative divisions or human settlements as their administrative centre ?
(c(Q15617994),P36,c(Q20667921)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q486972
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q20667921 ) ( ontology:Q486972 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?o ) WHERE { { ?u property:P36 ?a . ?a rdf:type ontology:Q20667921 . ?u rdf:type ontology:Q15617994 } UNION { ?u property:P36 ?a . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q486972 } } GROUP BY ?u } . FILTER ( ?o = ?q ) }
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:type_of_french_administrative_division ) ( ontology:human_settlement ) } } GROUP BY ?b } } . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?o ) WHERE { { ?u property:capital ?a . ?a rdf:type ontology:type_of_french_administrative_division . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?u property:capital ?a . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:human_settlement } } GROUP BY ?u } . FILTER ( ?o = ?q ) }
[]
type of french administrative division human settlement designation for an administrative territorial entity
Q12789
SYSTEM
Var
Q12789
(c(Q15617994),P36,c(Q20667921)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q486972
[ANSWER] have max number of french administrative divisions or human settlements as their administrative centre
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q20667921 ) ( ontology:Q486972 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?o ) WHERE { { ?u property:P36 ?a . ?a rdf:type ontology:Q20667921 . ?u rdf:type ontology:Q15617994 } UNION { ?u property:P36 ?a . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q486972 } } GROUP BY ?u } . FILTER ( ?o = ?q ) }
Var
Var have max number of french administrative divisions or human settlements as their administrative centre
Var
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:type_of_french_administrative_division ) ( ontology:human_settlement ) } } GROUP BY ?b } } . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?o ) WHERE { { ?u property:capital ?a . ?a rdf:type ontology:type_of_french_administrative_division . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?u property:capital ?a . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:human_settlement } } GROUP BY ?u } . FILTER ( ?o = ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q30
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories holds diplomatic relationship with more number of political territories or administrative territories than United States of America ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q30
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?j } . FILTER ( ?x > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:P530 resource:Q30 . { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } }
United States of America
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find_reverse
entity United States of America
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?j } . FILTER ( ?x > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:diplomatic_relation resource:United_States_of_America . { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q30
relation P530
type Q1048835
type Q15617994
[ANSWERS] hold diplomatic relationship with more number of political territories or administrative territories than United States of America
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?j } . FILTER ( ?x > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:P530 resource:Q30 . { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } }
Brazil Italy
Brazil and Italy hold diplomatic relationship with more number of political territories or administrative territories than United States of America
Brazil Italy
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find_reverse
entity United States of America
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?j } . FILTER ( ?x > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:diplomatic_relation resource:United_States_of_America . { ?c rdf:type ?b . VALUES ( ?b ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q159
P530
Q15617994 Q1048835 Q15617994
USER
And what about Russia?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q159
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { { { ?b rdf:type ontology:Q1048835 } UNION { ?b rdf:type ontology:Q15617994 } } . ?b property:P530 resource:Q159 } } . FILTER ( ?l > ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?l ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?y } }
Russia
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find_reverse
entity Russia
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { { { ?b rdf:type ontology:political_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . ?b property:diplomatic_relation resource:Russia } } . FILTER ( ?l > ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?l ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?y } }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q159
relation P530
type Q1048835
type Q15617994
[ANSWERS]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { { { ?b rdf:type ontology:Q1048835 } UNION { ?b rdf:type ontology:Q15617994 } } . ?b property:P530 resource:Q159 } } . FILTER ( ?l > ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?l ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?y } }
Brazil Italy
Brazil Italy
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
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_multi_types
action find_reverse
entity Russia
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) WHERE { { { ?b rdf:type ontology:political_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . ?b property:diplomatic_relation resource:Russia } } . FILTER ( ?l > ?u ) . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?l ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?y } }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q2342494
USER
Which administrative territories are the countries of origin of less number of film genres or collectables than that administrative territory ?
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
designation for an administrative territorial entity film genre collectable
Comparative|More/Less|Mult. entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
Did you mean Italy ?
Italy
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (All)
USER
No, I meant Brazil. Could you tell me the answer for that?
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
Q155
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q230 Q159 Q55
SYSTEM
Georgia, Russia, Netherlands
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
[ANSWERS] are the countries of origin of less number of film genres or collectables than that administrative territory
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
Georgia, Russia and Netherlands are the countries of origin of less number of film genres or collectables than that administrative territory
Georgia Russia Netherlands
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]