Simple Question (Direct)
Simple Question
Q748847
P27
Q7275
USER
Which state is the native country of Branislav Sekulić ?
(Q748847,P27,c(Q7275))
action filter_type
action find
entity Q748847
relation P27
type Q7275
['Q748847', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?w WHERE { resource:Q748847 property:P27 ?w . ?w rdf:type ontology:Q7275 }
Branislav Sekulić
action filter_type
action find
entity Branislav Sekulić
relation country of citizenship
type state
['Branislav Sekulić', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?w WHERE { resource:Branislav_Sekulić property:country_of_citizenship ?w . ?w rdf:type ontology:state }
[]
state
Q36704
SYSTEM
Yugoslavia
Q36704
(Q748847,P27,c(Q7275))
action filter_type
action find
entity Q748847
relation P27
type Q7275
The [ANSWER] is the native country of Branislav Sekulić
['Q748847', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?w WHERE { resource:Q748847 property:P27 ?w . ?w rdf:type ontology:Q7275 }
Yugoslavia
The Yugoslavia is the native country of Branislav Sekulić
Yugoslavia
action filter_type
action find
entity Branislav Sekulić
relation country of citizenship
type state
['Branislav Sekulić', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?w WHERE { resource:Branislav_Sekulić property:country_of_citizenship ?w . ?w rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q748847
P20
Q56061
USER
Where did the expiration of Branislav Sekulić occur ?
(Q748847,P20,c(Q56061))
action filter_type
action find
entity Q748847
relation P20
type Q56061
['Q748847', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q748847 property:P20 ?v . ?v rdf:type ontology:Q56061 }
Branislav Sekulić
action filter_type
action find
entity Branislav Sekulić
relation place of death
type administrative territorial entity
['Branislav Sekulić', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Branislav_Sekulić property:place_of_death ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q36378
SYSTEM
Fribourg
Q36378
(Q748847,P20,c(Q56061))
action filter_type
action find
entity Q748847
relation P20
type Q56061
The expiration of Branislav Sekulić occurred in [ANSWER]
['Q748847', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q748847 property:P20 ?v . ?v rdf:type ontology:Q56061 }
Fribourg
The expiration of Branislav Sekulić occurred in Fribourg
Fribourg
action filter_type
action find
entity Branislav Sekulić
relation place of death
type administrative territorial entity
['Branislav Sekulić', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Branislav_Sekulić property:place_of_death ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q36378 Q193920
P190
Q20667921
USER
Is Rueil-Malmaison the sister city of that administrative territory ?
(Q36378,P190,Q193920)
action is_in
entity Q193920
action find
entity Q36378
relation P190
['Q36378', 'P190', 'Q193920']
ASK WHERE { resource:Q36378 property:P190 resource:Q193920 }
Fribourg Rueil-Malmaison
action is_in
entity Rueil-Malmaison
action find
entity Fribourg
relation sister city
['Fribourg', 'sister city', 'Rueil-Malmaison']
ASK WHERE { resource:Fribourg property:sister_city resource:Rueil-Malmaison }
[]
type of french administrative division
SYSTEM
YES
(Q36378,P190,Q193920)
action is_in
entity Q193920
action find
entity Q36378
relation P190
[ANSWER]
['Q36378', 'P190', 'Q193920']
ASK WHERE { resource:Q36378 property:P190 resource:Q193920 }
Yes
action is_in
entity Rueil-Malmaison
action find
entity Fribourg
relation sister city
['Fribourg', 'sister city', 'Rueil-Malmaison']
ASK WHERE { resource:Fribourg property:sister_city resource:Rueil-Malmaison }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q748847 Q4860759
P19
Q56061
USER
Is Baring, Saskatchewan the birthplace of Branislav Sekulić ?
(Q748847,P19,Q4860759)
action is_in
entity Q4860759
action find
entity Q748847
relation P19
['Q748847', 'P19', 'Q4860759']
ASK WHERE { resource:Q748847 property:P19 resource:Q4860759 }
Branislav Sekulić Baring, Saskatchewan
action is_in
entity Baring, Saskatchewan
action find
entity Branislav Sekulić
relation place of birth
['Branislav Sekulić', 'place of birth', 'Baring, Saskatchewan']
ASK WHERE { resource:Branislav_Sekulić property:place_of_birth resource:Baring,_Saskatchewan }
[]
administrative territorial entity
SYSTEM
NO
(Q748847,P19,Q4860759)
action is_in
entity Q4860759
action find
entity Q748847
relation P19
[ANSWER]
['Q748847', 'P19', 'Q4860759']
ASK WHERE { resource:Q748847 property:P19 resource:Q4860759 }
No
action is_in
entity Baring, Saskatchewan
action find
entity Branislav Sekulić
relation place of birth
['Branislav Sekulić', 'place of birth', 'Baring, Saskatchewan']
ASK WHERE { resource:Branislav_Sekulić property:place_of_birth resource:Baring,_Saskatchewan }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q83459 Q748847
P1344
Q15275719
USER
Which recurring events did Branislav Sekulić and Brazil national football team compete in ?
AND((Q748847,P1344,c(Q15275719)), (Q83459,P1344,c(Q15275719)))
action filter_type
action intersection
action find
entity Q748847
relation P1344
action find
entity Q83459
relation P1344
type Q15275719
{'AND': [['Q748847', 'P1344', {'concept': 'Q15275719'}], ['Q83459', 'P1344', {'concept': 'Q15275719'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15275719 . resource:Q748847 property:P1344 ?g . resource:Q83459 property:P1344 ?g }
Brazil national football team Branislav Sekulić
action filter_type
action intersection
action find
entity Branislav Sekulić
relation participant of
action find
entity Brazil national football team
relation participant of
type recurring event
{'AND': [['Branislav Sekulić', 'participant of', {'concept': 'recurring event'}], ['Brazil national football team', 'participant of', {'concept': 'recurring event'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:recurring_event . resource:Branislav_Sekulić property:participant_of ?g . resource:Brazil_national_football_team property:participant_of ?g }
[]
recurring event
Q48432
SYSTEM
1930 FIFA World Cup
Q48432
AND((Q748847,P1344,c(Q15275719)), (Q83459,P1344,c(Q15275719)))
action filter_type
action intersection
action find
entity Q748847
relation P1344
action find
entity Q83459
relation P1344
type Q15275719
Branislav Sekulić and Brazil national football team competed in [ANSWER]
{'AND': [['Q748847', 'P1344', {'concept': 'Q15275719'}], ['Q83459', 'P1344', {'concept': 'Q15275719'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15275719 . resource:Q748847 property:P1344 ?g . resource:Q83459 property:P1344 ?g }
1930 FIFA World Cup
Branislav Sekulić and Brazil national football team competed in 1930 FIFA World Cup
1930 FIFA World Cup
action filter_type
action intersection
action find
entity Branislav Sekulić
relation participant of
action find
entity Brazil national football team
relation participant of
type recurring event
{'AND': [['Branislav Sekulić', 'participant of', {'concept': 'recurring event'}], ['Brazil national football team', 'participant of', {'concept': 'recurring event'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:recurring_event . resource:Branislav_Sekulić property:participant_of ?g . resource:Brazil_national_football_team property:participant_of ?g }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q504015 Q36704
P47
Q15617994
USER
Which administrative territories share border with Yugoslavia or Esselbach ?
OR((Q36704,P47,c(Q15617994)), (Q504015,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q36704
relation P47
action find
entity Q504015
relation P47
type Q15617994
{'OR': [['Q36704', 'P47', {'concept': 'Q15617994'}], ['Q504015', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q36704 property:P47 ?v } UNION { resource:Q504015 property:P47 ?v } } . ?v rdf:type ontology:Q15617994 }
Esselbach Yugoslavia
action filter_type
action union
action find
entity Yugoslavia
relation shares border with
action find
entity Esselbach
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Yugoslavia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Esselbach', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Yugoslavia property:shares_border_with ?v } UNION { resource:Esselbach property:shares_border_with ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q222 Q41 Q508592 Q218 Q219 Q504048 Q28 Q38 Q510872
SYSTEM
Albania, Greece, Hafenlohr, Romania, Bulgaria, Bischbrunn, Hungary, Italy, Schollbrunn
Q222 Q41 Q508592 Q218 Q219 Q504048 Q28 Q38 Q510872
OR((Q36704,P47,c(Q15617994)), (Q504015,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q36704
relation P47
action find
entity Q504015
relation P47
type Q15617994
[ANSWERS] share border with Yugoslavia or Esselbach
{'OR': [['Q36704', 'P47', {'concept': 'Q15617994'}], ['Q504015', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q36704 property:P47 ?v } UNION { resource:Q504015 property:P47 ?v } } . ?v rdf:type ontology:Q15617994 }
Albania Greece Hafenlohr Romania Bulgaria Bischbrunn Hungary Italy Schollbrunn
Albania, Greece, Hafenlohr, Romania, Bulgaria, Bischbrunn, Hungary, Italy and Schollbrunn share border with Yugoslavia or Esselbach
Albania Greece Hafenlohr Romania Bulgaria Bischbrunn Hungary Italy Schollbrunn
action filter_type
action union
action find
entity Yugoslavia
relation shares border with
action find
entity Esselbach
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Yugoslavia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Esselbach', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Yugoslavia property:shares_border_with ?v } UNION { resource:Esselbach property:shares_border_with ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories are the countries of origin of more number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|More/Less|Single entity type|Clarification
Q504048
SYSTEM
Did you mean Bischbrunn ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Bischbrunn ?
Bischbrunn
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant Greece. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q41
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q668 Q142 Q55 Q145 Q148 Q837 Q159 Q43 Q155 Q884 Q33 Q31 Q30 Q36 Q34 Q38 Q20 Q843 Q17 Q902 Q213 Q29
(c(Q2031291),P495,c(Q15617994))
[ANSWERS] are the countries of origin of more number of releases than that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Israel India France Netherlands United Kingdom People's Republic of China Nepal Russia Turkey Brazil South Korea Finland Belgium United States of America Poland Sweden Italy Norway Pakistan Japan Bangladesh Czech Republic Spain
Italy, Brazil and United States of America are the countries of origin of more number of releases than that administrative territory
Italy Brazil United States of America
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q20667921 Q56061 Q15617994
USER
How many administrative territories have atleast 4 french administrative divisions or administrative territories as their administrative centre ?
(c(Q15617994),P36,c(Q20667921)|c(Q56061))
action count
action atleast
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q56061
value 4
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?m WHERE { { ?m property:P36 ?r . ?m rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q56061 } UNION { ?m rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q20667921 . ?m property:P36 ?r } } GROUP BY ?m } . FILTER ( ?b >= 4 ) }
action count
action atleast
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 administrative territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?m WHERE { { ?m property:capital ?r . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:administrative_territorial_entity } UNION { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:type_of_french_administrative_division . ?m property:capital ?r } } GROUP BY ?m } . FILTER ( ?b >= 4 ) }
[]
type of french administrative division administrative territorial entity designation for an administrative territorial entity
SYSTEM
1
Q12789
(c(Q15617994),P36,c(Q20667921)|c(Q56061))
action count
action atleast
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q56061
value 4
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?m WHERE { { ?m property:P36 ?r . ?m rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q56061 } UNION { ?m rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q20667921 . ?m property:P36 ?r } } GROUP BY ?m } . FILTER ( ?b >= 4 ) }
Var
1
action count
action atleast
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 administrative territorial entity
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?m WHERE { { ?m property:capital ?r . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:administrative_territorial_entity } UNION { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:type_of_french_administrative_division . ?m property:capital ?r } } GROUP BY ?m } . FILTER ( ?b >= 4 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q710
P194
Q1752346 Q11204 Q15617994
USER
How many administrative territories have more number of assemblies or legislatures as their representative body than Kiribati ?
(c(Q15617994),P194,c(Q1752346)|c(Q11204))
action count
action greater
action union
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q710
relation P194
type Q1752346
type Q11204
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?g WHERE { { ?g property:P194 ?e . ?e rdf:type ontology:Q1752346 . ?g rdf:type ontology:Q15617994 } UNION { ?g property:P194 ?e . ?g rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q11204 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { { ?d rdf:type ontology:Q1752346 } UNION { ?d rdf:type ontology:Q11204 } } . resource:Q710 property:P194 ?d } } . FILTER ( ?s > ?j ) }
Kiribati
action count
action greater
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Kiribati
relation legislative body
type assembly
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?g WHERE { { ?g property:legislative_body ?e . ?e rdf:type ontology:assembly . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:legislative_body ?e . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:legislature } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { { ?d rdf:type ontology:assembly } UNION { ?d rdf:type ontology:legislature } } . resource:Kiribati property:legislative_body ?d } } . FILTER ( ?s > ?j ) }
[]
assembly legislature designation for an administrative territorial entity
SYSTEM
4
Q159 Q794 Q6465 Q948
(c(Q15617994),P194,c(Q1752346)|c(Q11204))
action count
action greater
action union
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action count
action filter_multi_types
action find
entity Q710
relation P194
type Q1752346
type Q11204
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?g WHERE { { ?g property:P194 ?e . ?e rdf:type ontology:Q1752346 . ?g rdf:type ontology:Q15617994 } UNION { ?g property:P194 ?e . ?g rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q11204 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { { ?d rdf:type ontology:Q1752346 } UNION { ?d rdf:type ontology:Q11204 } } . resource:Q710 property:P194 ?d } } . FILTER ( ?s > ?j ) }
Russia Iran department of France Tunisia
4
action count
action greater
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action count
action filter_multi_types
action find
entity Kiribati
relation legislative body
type assembly
type legislature
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) ?g WHERE { { ?g property:legislative_body ?e . ?e rdf:type ontology:assembly . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:legislative_body ?e . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:legislature } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { { ?d rdf:type ontology:assembly } UNION { ?d rdf:type ontology:legislature } } . resource:Kiribati property:legislative_body ?d } } . FILTER ( ?s > ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1001
Q15617994 Q35798 Q12737077
USER
Which administrative territories are judicially linked to max number of executive branches or occupations ?
(c(Q35798)|c(Q12737077),P1001,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q35798
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
[[{'concept': 'Q35798'}, {'concept': 'Q12737077'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?j ) WHERE { VALUES ( ?g ) { ( ontology:Q35798 ) ( ontology:Q12737077 ) } . ?t rdf:type ?g } GROUP BY ?q } } . { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:P1001 ?c . ?a rdf:type ontology:Q35798 . ?c rdf:type ontology:Q15617994 } UNION { ?a property:P1001 ?c . ?c rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q12737077 } } GROUP BY ?c } . FILTER ( ?i = ?l ) }
action argmax
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type executive branch
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
[[{'concept': 'executive branch'}, {'concept': 'occupation'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?j ) WHERE { VALUES ( ?g ) { ( ontology:executive_branch ) ( ontology:occupation ) } . ?t rdf:type ?g } GROUP BY ?q } } . { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:applies_to_jurisdiction ?c . ?a rdf:type ontology:executive_branch . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?a property:applies_to_jurisdiction ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:occupation } } GROUP BY ?c } . FILTER ( ?i = ?l ) }
[]
designation for an administrative territorial entity executive branch occupation
Q41
SYSTEM
Greece
Q41
(c(Q35798)|c(Q12737077),P1001,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q35798
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
[ANSWER] is judicially linked to max number of executive branches or occupations
[[{'concept': 'Q35798'}, {'concept': 'Q12737077'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?j ) WHERE { VALUES ( ?g ) { ( ontology:Q35798 ) ( ontology:Q12737077 ) } . ?t rdf:type ?g } GROUP BY ?q } } . { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:P1001 ?c . ?a rdf:type ontology:Q35798 . ?c rdf:type ontology:Q15617994 } UNION { ?a property:P1001 ?c . ?c rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q12737077 } } GROUP BY ?c } . FILTER ( ?i = ?l ) }
Greece
Greece is judicially linked to max number of executive branches or occupations
Greece
action argmax
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type executive branch
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
[[{'concept': 'executive branch'}, {'concept': 'occupation'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?j ) WHERE { VALUES ( ?g ) { ( ontology:executive_branch ) ( ontology:occupation ) } . ?t rdf:type ?g } GROUP BY ?q } } . { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?i ) WHERE { { ?a property:applies_to_jurisdiction ?c . ?a rdf:type ontology:executive_branch . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?a property:applies_to_jurisdiction ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:occupation } } GROUP BY ?c } . FILTER ( ?i = ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories are the countries of origin of approximately the same number of releases as that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q41
relation P495
type Q15617994
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?z ) WHERE { ?m property:P495 ?b . ?b rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q2031291 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Q41 property:P495 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?z = ?u ) }
action approx
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Greece
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?z ) WHERE { ?m property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:release } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Greece property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z = ?u ) }
[]
designation for an administrative territorial entity release
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 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 Q17 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 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2031291),P495,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q41
relation P495
type Q15617994
[ANSWERS] are the countries of origin of approximately the same number of releases as that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?z ) WHERE { ?m property:P495 ?b . ?b rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q2031291 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Q41 property:P495 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?z = ?u ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom 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 Brazil 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 Sweden Philippines Switzerland Italy 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 Japan 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 Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the countries of origin of approximately the same number of releases as that administrative territory
Italy Brazil Georgia
action approx
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Greece
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?z ) WHERE { ?m property:country_of_origin ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:release } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { resource:Greece property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z = ?u ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P36
Q515 Q56061
USER
How many cities or administrative territories are the capitals of Brazil ?
(Q155,P36,c(Q515)) (Q155,P36,c(Q56061))
action count
action union
action filter_type
action find
entity Q155
relation P36
type Q515
action filter_type
action find
entity Q155
relation P36
type Q56061
['Q155', 'P36', {'concept': 'Q515'}] ['Q155', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?r rdf:type ?d }
Brazil
action count
action union
action filter_type
action find
entity Brazil
relation capital
type city
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
['Brazil', 'capital', {'concept': 'city'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?r rdf:type ?d }
[]
city administrative territorial entity
SYSTEM
2
Q8678 Q2844
(Q155,P36,c(Q515)) (Q155,P36,c(Q56061))
action count
action union
action filter_type
action find
entity Q155
relation P36
type Q515
action filter_type
action find
entity Q155
relation P36
type Q56061
[ANSWER]
['Q155', 'P36', {'concept': 'Q515'}] ['Q155', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?r rdf:type ?d }
Rio de Janeiro Brasília
2
action count
action union
action filter_type
action find
entity Brazil
relation capital
type city
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
['Brazil', 'capital', {'concept': 'city'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?r rdf:type ?d }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P85
Q484692 Q7725634 Q15617994
USER
Which administrative territories have min number of hymns and literary works as their anthem ?
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action argmin
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?t ) WHERE { { ?j property:P85 ?f . ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q484692 } UNION { ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q7725634 . ?j property:P85 ?f } } GROUP BY ?j } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?g } . FILTER ( ?n = ?m ) }
action argmin
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?t ) WHERE { { ?j property:anthem ?f . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:hymn } UNION { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:literary_work . ?j property:anthem ?f } } GROUP BY ?j } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?g } . FILTER ( ?n = ?m ) }
[]
hymn literary work designation for an administrative territorial entity
Q142 Q1093 Q773
SYSTEM
France, Limburg, Overijssel
Q701 Q705 Q142 Q1093 Q694 Q773 Q772 Q33788
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action argmin
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
[ANSWERS] have min number of hymns and literary works as their anthem
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?t ) WHERE { { ?j property:P85 ?f . ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q484692 } UNION { ?j rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q7725634 . ?j property:P85 ?f } } GROUP BY ?j } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?g } . FILTER ( ?n = ?m ) }
North Holland Zeeland France Limburg South Holland Overijssel Drenthe New Caledonia
France, Limburg and Overijssel have min number of hymns and literary works as their anthem
France Limburg Overijssel
action argmin
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?t ) WHERE { { ?j property:anthem ?f . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:hymn } UNION { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:literary_work . ?j property:anthem ?f } } GROUP BY ?j } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?g } . FILTER ( ?n = ?m ) }
[]