Simple Question (Direct)
Simple Question
Q872992
P27
Q1048835
USER
Which political territory is the native country of Stefan Bliem ?
(Q872992,P27,c(Q1048835))
action filter_type
action find
entity Q872992
relation P27
type Q1048835
['Q872992', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q872992 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Stefan Bliem
action filter_type
action find
entity Stefan Bliem
relation country of citizenship
type political territorial entity
['Stefan Bliem', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Stefan_Bliem property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q872992,P27,c(Q1048835))
action filter_type
action find
entity Q872992
relation P27
type Q1048835
The [ANSWER] is the native country of Stefan Bliem
['Q872992', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q872992 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Austria
The Austria is the native country of Stefan Bliem
Austria
action filter_type
action find
entity Stefan Bliem
relation country of citizenship
type political territorial entity
['Stefan Bliem', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Stefan_Bliem property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q872992
P641
Q349
USER
Which sport was that person a part of ?
(Q40,P641,c(Q349))
action filter_type
action find
entity Q872992
relation P641
type Q349
['Q40', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q872992 property:P641 ?z . ?z rdf:type ontology:Q349 }
Stefan Bliem
action filter_type
action find
entity Stefan Bliem
relation sport
type sport
['Austria', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Stefan_Bliem property:sport ?z . ?z rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q40,P641,c(Q349))
action filter_type
action find
entity Q872992
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q40', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q872992 property:P641 ?z . ?z rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Stefan Bliem
relation sport
type sport
['Austria', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Stefan_Bliem property:sport ?z . ?z rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8076922 Q872992
P106
Q12737077
USER
Which occupations do Stefan Bliem or Ángel Valbuena Prat do for a living ?
OR((Q872992,P106,c(Q12737077)), (Q8076922,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q872992
relation P106
action find
entity Q8076922
relation P106
type Q12737077
{'OR': [['Q872992', 'P106', {'concept': 'Q12737077'}], ['Q8076922', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q872992 property:P106 ?w } UNION { resource:Q8076922 property:P106 ?w } } . ?w rdf:type ontology:Q12737077 }
Ángel Valbuena Prat Stefan Bliem
action filter_type
action union
action find
entity Stefan Bliem
relation occupation
action find
entity Ángel Valbuena Prat
relation occupation
type occupation
{'OR': [['Stefan Bliem', 'occupation', {'concept': 'occupation'}], ['Ángel Valbuena Prat', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Stefan_Bliem property:occupation ?w } UNION { resource:Ángel_Valbuena_Prat property:occupation ?w } } . ?w rdf:type ontology:occupation }
[]
occupation
Q17167049 Q937857 Q1622272 Q36180
SYSTEM
specialist in literature, association football player, university teacher, writer
Q17167049 Q937857 Q1622272 Q36180
OR((Q872992,P106,c(Q12737077)), (Q8076922,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q872992
relation P106
action find
entity Q8076922
relation P106
type Q12737077
Stefan Bliem or Ángel Valbuena Prat do for a living as [ANSWERS]
{'OR': [['Q872992', 'P106', {'concept': 'Q12737077'}], ['Q8076922', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q872992 property:P106 ?w } UNION { resource:Q8076922 property:P106 ?w } } . ?w rdf:type ontology:Q12737077 }
specialist in literature association football player university teacher writer
Stefan Bliem or Ángel Valbuena Prat do for a living as specialist in literature, association football player, university teacher and writer
specialist in literature association football player university teacher writer
action filter_type
action union
action find
entity Stefan Bliem
relation occupation
action find
entity Ángel Valbuena Prat
relation occupation
type occupation
{'OR': [['Stefan Bliem', 'occupation', {'concept': 'occupation'}], ['Ángel Valbuena Prat', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Stefan_Bliem property:occupation ?w } UNION { resource:Ángel_Valbuena_Prat property:occupation ?w } } . ?w rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q937857
P425
Q349
USER
Which sport has association football player as the associated field of occupation ?
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q937857 property:P425 ?e . ?e rdf:type ontology:Q349 }
association football player
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:association_football_player property:field_of_this_occupation ?e . ?e rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
Player [ANSWER] has [ANSWER] player as the associated field of occupation
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q937857 property:P425 ?e . ?e rdf:type ontology:Q349 }
association football
Player association football has association football player as the associated field of occupation
association football
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:association_football_player property:field_of_this_occupation ?e . ?e rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q937857
P361
Q847017
USER
Which sports club is association football player a component of ?
(Q937857,P361,c(Q847017))
action filter_type
action find
entity Q937857
relation P361
type Q847017
['Q937857', 'P361', {'concept': 'Q847017'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q847017 . resource:Q937857 property:P361 ?o }
association football player
action filter_type
action find
entity association football player
relation part of
type sports club
['association football player', 'part of', {'concept': 'sports club'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sports_club . resource:association_football_player property:part_of ?o }
[]
sports club
Q476028
SYSTEM
association football club
Q476028
(Q937857,P361,c(Q847017))
action filter_type
action find
entity Q937857
relation P361
type Q847017
Club [ANSWER] is association football player a component of
['Q937857', 'P361', {'concept': 'Q847017'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q847017 . resource:Q937857 property:P361 ?o }
association football club
Club association football club is association football player a component of
association football club
action filter_type
action find
entity association football player
relation part of
type sports club
['association football player', 'part of', {'concept': 'sports club'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sports_club . resource:association_football_player property:part_of ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P1313
Q12737077
USER
Which occupation is fulfilled by Austria ?
(Q40,P1313,c(Q12737077))
action filter_type
action find
entity Q40
relation P1313
type Q12737077
['Q40', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q40 property:P1313 ?c . ?c rdf:type ontology:Q12737077 }
Austria
action filter_type
action find
entity Austria
relation office held by head of government
type occupation
['Austria', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Austria property:office_held_by_head_of_government ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q1006398
SYSTEM
Federal Chancellor of Austria
Q1006398
(Q40,P1313,c(Q12737077))
action filter_type
action find
entity Q40
relation P1313
type Q12737077
The [ANSWER] is fulfilled by Austria
['Q40', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q40 property:P1313 ?c . ?c rdf:type ontology:Q12737077 }
Federal Chancellor of Austria
The Federal Chancellor of Austria is fulfilled by Austria
Federal Chancellor of Austria
action filter_type
action find
entity Austria
relation office held by head of government
type occupation
['Austria', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Austria property:office_held_by_head_of_government ?c . ?c rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P466
Q847017 Q1076486 Q811979
USER
Which sports clubs are a tenants of max number of sports venues or architectural structures ?
(c(Q1076486)|c(Q811979),P466,c(Q847017))
action argmax
action union
action find_reverse_tuple_counts
relation P466
type Q847017
type Q1076486
action find_reverse_tuple_counts
relation P466
type Q847017
type Q811979
[[{'concept': 'Q1076486'}, {'concept': 'Q811979'}], 'P466', {'concept': 'Q847017'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?j ) WHERE { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1076486 ) ( ontology:Q811979 ) } } GROUP BY ?r } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?h ) WHERE { { ?b rdf:type ontology:Q847017 . ?y rdf:type ontology:Q1076486 . ?y property:P466 ?b } UNION { ?b rdf:type ontology:Q847017 . ?y rdf:type ontology:Q811979 . ?y property:P466 ?b } } GROUP BY ?b } . FILTER ( ?h = ?l ) }
action argmax
action union
action find_reverse_tuple_counts
relation occupant
type sports club
type sports venue
action find_reverse_tuple_counts
relation occupant
type sports club
type architectural structure
[[{'concept': 'sports venue'}, {'concept': 'architectural structure'}], 'occupant', {'concept': 'sports club'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?j ) WHERE { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:sports_venue ) ( ontology:architectural_structure ) } } GROUP BY ?r } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?h ) WHERE { { ?b rdf:type ontology:sports_club . ?y rdf:type ontology:sports_venue . ?y property:occupant ?b } UNION { ?b rdf:type ontology:sports_club . ?y rdf:type ontology:architectural_structure . ?y property:occupant ?b } } GROUP BY ?b } . FILTER ( ?h = ?l ) }
[]
sports club sports venue architectural structure
Q3198007 Q3518575 Q3140337
SYSTEM
UCF Knights, Maryland Terrapins, Indiana Hoosiers
Q3198007 Q3518575 Q3140337
(c(Q1076486)|c(Q811979),P466,c(Q847017))
action argmax
action union
action find_reverse_tuple_counts
relation P466
type Q847017
type Q1076486
action find_reverse_tuple_counts
relation P466
type Q847017
type Q811979
The [ANSWERS] are a tenants of max number of sports venues or architectural structures
[[{'concept': 'Q1076486'}, {'concept': 'Q811979'}], 'P466', {'concept': 'Q847017'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?j ) WHERE { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1076486 ) ( ontology:Q811979 ) } } GROUP BY ?r } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?h ) WHERE { { ?b rdf:type ontology:Q847017 . ?y rdf:type ontology:Q1076486 . ?y property:P466 ?b } UNION { ?b rdf:type ontology:Q847017 . ?y rdf:type ontology:Q811979 . ?y property:P466 ?b } } GROUP BY ?b } . FILTER ( ?h = ?l ) }
UCF Knights Maryland Terrapins Indiana Hoosiers
The UCF Knights, Maryland Terrapins and Indiana Hoosiers are a tenants of max number of sports venues or architectural structures
UCF Knights Maryland Terrapins Indiana Hoosiers
action argmax
action union
action find_reverse_tuple_counts
relation occupant
type sports club
type sports venue
action find_reverse_tuple_counts
relation occupant
type sports club
type architectural structure
[[{'concept': 'sports venue'}, {'concept': 'architectural structure'}], 'occupant', {'concept': 'sports club'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?l ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?j ) WHERE { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:sports_venue ) ( ontology:architectural_structure ) } } GROUP BY ?r } } . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?h ) WHERE { { ?b rdf:type ontology:sports_club . ?y rdf:type ontology:sports_venue . ?y property:occupant ?b } UNION { ?b rdf:type ontology:sports_club . ?y rdf:type ontology:architectural_structure . ?y property:occupant ?b } } GROUP BY ?b } . FILTER ( ?h = ?l ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P115
Q811979 Q847017
USER
Which architectural structures are the arena of max number of sports clubs ?
(c(Q847017),P115,Q393353)
action argmax
action find_reverse_tuple_counts
relation P115
type Q811979
type Q847017
[{'concept': 'Q847017'}, 'P115', 'Q393353']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?e ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?x ) WHERE { ?v property:P115 ?t . ?t rdf:type ontology:Q811979 . ?v rdf:type ontology:Q847017 } GROUP BY ?t } } . { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:P115 ?b . ?b rdf:type ontology:Q811979 . ?n rdf:type ontology:Q847017 } GROUP BY ?b } . FILTER ( ?w = ?e ) }
action argmax
action find_reverse_tuple_counts
relation home venue
type architectural structure
type sports club
[{'concept': 'sports club'}, 'home venue', 'Žalgiris Arena']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?e ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?x ) WHERE { ?v property:home_venue ?t . ?t rdf:type ontology:architectural_structure . ?v rdf:type ontology:sports_club } GROUP BY ?t } } . { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:home_venue ?b . ?b rdf:type ontology:architectural_structure . ?n rdf:type ontology:sports_club } GROUP BY ?b } . FILTER ( ?w = ?e ) }
[]
architectural structure sports club
Q6588357
SYSTEM
Pirouzi Arena
Q6588357
(c(Q847017),P115,Q393353)
action argmax
action find_reverse_tuple_counts
relation P115
type Q811979
type Q847017
[ANSWER] is the arena of max number of sports clubs
[{'concept': 'Q847017'}, 'P115', 'Q393353']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?e ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?x ) WHERE { ?v property:P115 ?t . ?t rdf:type ontology:Q811979 . ?v rdf:type ontology:Q847017 } GROUP BY ?t } } . { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:P115 ?b . ?b rdf:type ontology:Q811979 . ?n rdf:type ontology:Q847017 } GROUP BY ?b } . FILTER ( ?w = ?e ) }
Pirouzi Arena
Pirouzi Arena is the arena of max number of sports clubs
Pirouzi Arena
action argmax
action find_reverse_tuple_counts
relation home venue
type architectural structure
type sports club
[{'concept': 'sports club'}, 'home venue', 'Žalgiris Arena']
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?e ) { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?x ) WHERE { ?v property:home_venue ?t . ?t rdf:type ontology:architectural_structure . ?v rdf:type ontology:sports_club } GROUP BY ?t } } . { SELECT DISTINCT ?b ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:home_venue ?b . ?b rdf:type ontology:architectural_structure . ?n rdf:type ontology:sports_club } GROUP BY ?b } . FILTER ( ?w = ?e ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q6588357 Q3747539
P466
Q847017
USER
Is Foolad Mahan FSC a tenant of that architectural structure ?
(Q6588357,P466,Q3747539)
action is_in
entity Q3747539
action find
entity Q6588357
relation P466
['Q6588357', 'P466', 'Q3747539']
ASK WHERE { resource:Q6588357 property:P466 resource:Q3747539 }
Pirouzi Arena Foolad Mahan FSC
action is_in
entity Foolad Mahan FSC
action find
entity Pirouzi Arena
relation occupant
['Pirouzi Arena', 'occupant', 'Foolad Mahan FSC']
ASK WHERE { resource:Pirouzi_Arena property:occupant resource:Foolad_Mahan_FSC }
[]
sports club
SYSTEM
YES
(Q6588357,P466,Q3747539)
action is_in
entity Q3747539
action find
entity Q6588357
relation P466
[ANSWER]
['Q6588357', 'P466', 'Q3747539']
ASK WHERE { resource:Q6588357 property:P466 resource:Q3747539 }
Yes
action is_in
entity Foolad Mahan FSC
action find
entity Pirouzi Arena
relation occupant
['Pirouzi Arena', 'occupant', 'Foolad Mahan FSC']
ASK WHERE { resource:Pirouzi_Arena property:occupant resource:Foolad_Mahan_FSC }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3723825 Q40
P47 P27
Q15617994
USER
Which administrative territories are adjacent to Austria and do Emanuel Fillola belong to ?
AND((Q40,P47,c(Q15617994)), (Q3723825,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q40
relation P47
action find
entity Q3723825
relation P27
type Q15617994
{'AND': [['Q40', 'P47', {'concept': 'Q15617994'}], ['Q3723825', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { resource:Q40 property:P47 ?d . resource:Q3723825 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Emanuel Fillola Austria
action filter_type
action intersection
action find
entity Austria
relation shares border with
action find
entity Emanuel Fillola
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Austria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Emanuel Fillola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { resource:Austria property:shares_border_with ?d . resource:Emanuel_Fillola property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q40,P47,c(Q15617994)), (Q3723825,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q40
relation P47
action find
entity Q3723825
relation P27
type Q15617994
[ANSWER] is adjacent to Austria and do Emanuel Fillola belong to
{'AND': [['Q40', 'P47', {'concept': 'Q15617994'}], ['Q3723825', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { resource:Q40 property:P47 ?d . resource:Q3723825 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Italy
Italy is adjacent to Austria and do Emanuel Fillola belong to
Italy
action filter_type
action intersection
action find
entity Austria
relation shares border with
action find
entity Emanuel Fillola
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Austria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Emanuel Fillola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { resource:Austria property:shares_border_with ?d . resource:Emanuel_Fillola property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?r ) WHERE { ?n property:P530 ?v . ?n rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?n } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?t ) WHERE { ?e property:P530 ?h . ?e rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?e } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?r ) WHERE { ?n property:diplomatic_relation ?v . ?n rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?t ) WHERE { ?e property:diplomatic_relation ?h . ?e rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] holds diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?r ) WHERE { ?n property:P530 ?v . ?n rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?n } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?t ) WHERE { ?e property:P530 ?h . ?e rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?e } }
Germany
Germany holds diplomatic relationship with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?r ) WHERE { ?n property:diplomatic_relation ?v . ?n rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?t ) WHERE { ?e property:diplomatic_relation ?h . ?e rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q148540
P17
Q15617994
USER
How many administrative territories are present in Italy and Republic of Florence ?
(c(Q15617994),P17,Q38) (c(Q15617994),P17,Q148540)
action count
action intersection
action filter_type
action find_reverse
entity Q38
relation P17
type Q15617994
action filter_type
action find_reverse
entity Q148540
relation P17
type Q15617994
[{'concept': 'Q15617994'}, 'P17', 'Q38'] [{'concept': 'Q15617994'}, 'P17', 'Q148540']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P17 resource:Q38 . ?b rdf:type ontology:Q15617994 . ?b property:P17 resource:Q148540 . ?b rdf:type ontology:Q15617994 }
Italy Republic of Florence
action count
action intersection
action filter_type
action find_reverse
entity Italy
relation country
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Republic of Florence
relation country
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'country', 'Italy'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Republic of Florence']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:country resource:Italy . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:country resource:Republic_of_Florence . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
2
Q82646 Q52069
(c(Q15617994),P17,Q38) (c(Q15617994),P17,Q148540)
action count
action intersection
action filter_type
action find_reverse
entity Q38
relation P17
type Q15617994
action filter_type
action find_reverse
entity Q148540
relation P17
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P17', 'Q38'] [{'concept': 'Q15617994'}, 'P17', 'Q148540']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:P17 resource:Q38 . ?b rdf:type ontology:Q15617994 . ?b property:P17 resource:Q148540 . ?b rdf:type ontology:Q15617994 }
Certaldo Caprese Michelangelo
2
action count
action intersection
action filter_type
action find_reverse
entity Italy
relation country
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Republic of Florence
relation country
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'country', 'Italy'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Republic of Florence']
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { ?b property:country resource:Italy . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:country resource:Republic_of_Florence . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]