Simple Question (Direct)
Simple Question
Q4935310
P106
Q12737077
USER
What does Bobby Lumley do for a living ?
(Q4935310,P106,c(Q12737077))
action filter_type
action find
entity Q4935310
relation P106
type Q12737077
['Q4935310', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q4935310 property:P106 ?t }
Bobby Lumley
action filter_type
action find
entity Bobby Lumley
relation occupation
type occupation
['Bobby Lumley', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Bobby_Lumley property:occupation ?t }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q4935310,P106,c(Q12737077))
action filter_type
action find
entity Q4935310
relation P106
type Q12737077
Bobby Lumley does an [ANSWER] for a living
['Q4935310', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q4935310 property:P106 ?t }
association football player
Bobby Lumley does an association football player for a living
association football player
action filter_type
action find
entity Bobby Lumley
relation occupation
type occupation
['Bobby Lumley', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Bobby_Lumley property:occupation ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q937857
P425
Q349
USER
Which sport has that one as thier 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 ?n WHERE { resource:Q937857 property:P425 ?n . ?n 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 ?n WHERE { resource:association_football_player property:field_of_this_occupation ?n . ?n 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
Football [ANSWER] has that one as thier associated field of occupation
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q937857 property:P425 ?n . ?n rdf:type ontology:Q349 }
association football
Football association football has that one as thier 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 ?n WHERE { resource:association_football_player property:field_of_this_occupation ?n . ?n rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q937857 Q4868703
P800
Q502895
USER
How many people have association football player or Fort Dobbs as a notable work ?
(c(Q502895),P800,Q937857) (c(Q502895),P800,Q4868703)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P800
type Q502895
action filter_type
action find_reverse
entity Q4868703
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q937857'] [{'concept': 'Q502895'}, 'P800', 'Q4868703']
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { ?z property:P800 ?t . VALUES ( ?t ) { ( resource:Q4868703 ) ( resource:Q937857 ) } }
association football player Fort Dobbs
action count
action union
action filter_type
action find_reverse
entity association football player
relation notable work
type common name
action filter_type
action find_reverse
entity Fort Dobbs
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'association football player'] [{'concept': 'common name'}, 'notable work', 'Fort Dobbs']
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { ?z property:notable_work ?t . VALUES ( ?t ) { ( resource:Fort_Dobbs ) ( resource:association_football_player ) } }
[]
common name
SYSTEM
2
Q23047441 Q709129
(c(Q502895),P800,Q937857) (c(Q502895),P800,Q4868703)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P800
type Q502895
action filter_type
action find_reverse
entity Q4868703
relation P800
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q937857'] [{'concept': 'Q502895'}, 'P800', 'Q4868703']
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { ?z property:P800 ?t . VALUES ( ?t ) { ( resource:Q4868703 ) ( resource:Q937857 ) } }
Hugh Morgan-Owen Arthur Dobbs
2
action count
action union
action filter_type
action find_reverse
entity association football player
relation notable work
type common name
action filter_type
action find_reverse
entity Fort Dobbs
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'association football player'] [{'concept': 'common name'}, 'notable work', 'Fort Dobbs']
SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { ?z property:notable_work ?t . VALUES ( ?t ) { ( resource:Fort_Dobbs ) ( resource:association_football_player ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1610540 Q4935310
P19 P27
Q15617994
USER
Which administrative territories are the native countriesof Bobby Lumley or were Hermann Ament born in ?
OR((Q4935310,P27,c(Q15617994)), (Q1610540,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q4935310
relation P27
action find
entity Q1610540
relation P19
type Q15617994
{'OR': [['Q4935310', 'P27', {'concept': 'Q15617994'}], ['Q1610540', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1610540 property:P19 ?p } UNION { resource:Q4935310 property:P27 ?p } } . ?p rdf:type ontology:Q15617994 }
Hermann Ament Bobby Lumley
action filter_type
action union
action find
entity Bobby Lumley
relation country of citizenship
action find
entity Hermann Ament
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Bobby Lumley', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hermann Ament', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Hermann_Ament property:place_of_birth ?p } UNION { resource:Bobby_Lumley property:country_of_citizenship ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q632991 Q145
SYSTEM
Montabaur, United Kingdom
Q632991 Q145
OR((Q4935310,P27,c(Q15617994)), (Q1610540,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q4935310
relation P27
action find
entity Q1610540
relation P19
type Q15617994
[ANSWERS] are the native countriesof Bobby Lumley or were Hermann Ament born in
{'OR': [['Q4935310', 'P27', {'concept': 'Q15617994'}], ['Q1610540', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1610540 property:P19 ?p } UNION { resource:Q4935310 property:P27 ?p } } . ?p rdf:type ontology:Q15617994 }
Montabaur United Kingdom
Montabaur and United Kingdom are the native countriesof Bobby Lumley or were Hermann Ament born in
Montabaur United Kingdom
action filter_type
action union
action find
entity Bobby Lumley
relation country of citizenship
action find
entity Hermann Ament
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Bobby Lumley', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hermann Ament', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Hermann_Ament property:place_of_birth ?p } UNION { resource:Bobby_Lumley property:country_of_citizenship ?p } } . ?p 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 ?a WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?z ) WHERE { ?e property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?t ) WHERE { ?a property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?a } . FILTER ( ?t = ?q ) }
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 ?a WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?z ) WHERE { ?e property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?t ) WHERE { ?a property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?a } . FILTER ( ?t = ?q ) }
[]
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 ?a WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?z ) WHERE { ?e property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?t ) WHERE { ?a property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?a } . FILTER ( ?t = ?q ) }
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 ?a WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?z ) WHERE { ?e property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?e } } . { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?t ) WHERE { ?a property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?a } . FILTER ( ?t = ?q ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q123024
P159
Q43229
USER
How many organizations have their HQ location at Germany or Belgravia ?
(c(Q43229),P159,Q183) (c(Q43229),P159,Q123024)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P159
type Q43229
action filter_type
action find_reverse
entity Q123024
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q183'] [{'concept': 'Q43229'}, 'P159', 'Q123024']
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?l ) { ( resource:Q183 ) ( resource:Q123024 ) } . ?j property:P159 ?l }
Germany Belgravia
action count
action union
action filter_type
action find_reverse
entity Germany
relation headquarters location
type organization
action filter_type
action find_reverse
entity Belgravia
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Germany'] [{'concept': 'organization'}, 'headquarters location', 'Belgravia']
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?l ) { ( resource:Germany ) ( resource:Belgravia ) } . ?j property:headquarters_location ?l }
[]
organization
SYSTEM
14
Q82555 Q3334409 Q4040478 Q6030078 Q5314430 Q17508239 Q5749752 Q475539 Q17086983 Q4867891 Q21197087 Q6430062 Q449727 Q2575704
(c(Q43229),P159,Q183) (c(Q43229),P159,Q123024)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P159
type Q43229
action filter_type
action find_reverse
entity Q123024
relation P159
type Q43229
[ANSWER]
[{'concept': 'Q43229'}, 'P159', 'Q183'] [{'concept': 'Q43229'}, 'P159', 'Q123024']
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?l ) { ( resource:Q183 ) ( resource:Q123024 ) } . ?j property:P159 ?l }
Egmont Manga & Anime NG.DEV.TEAM Headup Games Infitec Duncan Lawrie Be quiet! Heym Deutsche Waffen und Munitionsfabriken Hybris BassLab Eve Audio Viventura Alweg Woellmer Type Foundry
14
action count
action union
action filter_type
action find_reverse
entity Germany
relation headquarters location
type organization
action filter_type
action find_reverse
entity Belgravia
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Germany'] [{'concept': 'organization'}, 'headquarters location', 'Belgravia']
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { VALUES ( ?l ) { ( resource:Germany ) ( resource:Belgravia ) } . ?j property:headquarters_location ?l }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q36823
P85
Q7725634
USER
How many literary works are the anthems for Germany or Tokelau ?
(Q183,P85,c(Q7725634)) (Q36823,P85,c(Q7725634))
action count
action union
action filter_type
action find
entity Q183
relation P85
type Q7725634
action filter_type
action find
entity Q36823
relation P85
type Q7725634
['Q183', 'P85', {'concept': 'Q7725634'}] ['Q36823', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { ?f rdf:type ontology:Q7725634 . resource:Q36823 property:P85 ?f } UNION { ?f rdf:type ontology:Q7725634 . resource:Q183 property:P85 ?f } }
Germany Tokelau
action count
action union
action filter_type
action find
entity Germany
relation anthem
type literary work
action filter_type
action find
entity Tokelau
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}] ['Tokelau', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { ?f rdf:type ontology:literary_work . resource:Tokelau property:anthem ?f } UNION { ?f rdf:type ontology:literary_work . resource:Germany property:anthem ?f } }
[]
literary work
SYSTEM
2
Q44042 Q40807
(Q183,P85,c(Q7725634)) (Q36823,P85,c(Q7725634))
action count
action union
action filter_type
action find
entity Q183
relation P85
type Q7725634
action filter_type
action find
entity Q36823
relation P85
type Q7725634
[ANSWER]
['Q183', 'P85', {'concept': 'Q7725634'}] ['Q36823', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { ?f rdf:type ontology:Q7725634 . resource:Q36823 property:P85 ?f } UNION { ?f rdf:type ontology:Q7725634 . resource:Q183 property:P85 ?f } }
Das Lied der Deutschen God Save the Queen
2
action count
action union
action filter_type
action find
entity Germany
relation anthem
type literary work
action filter_type
action find
entity Tokelau
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}] ['Tokelau', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { ?f rdf:type ontology:literary_work . resource:Tokelau property:anthem ?f } UNION { ?f rdf:type ontology:literary_work . resource:Germany property:anthem ?f } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P1376
Q56061
USER
Which administrative territories are the county seat for that political territory ?
action filter_type
action find_reverse
entity Q183
relation P1376
type Q56061
SELECT DISTINCT ?c WHERE { ?c property:P1376 resource:Q183 . ?c rdf:type ontology:Q56061 }
Germany
action filter_type
action find_reverse
entity Germany
relation capital of
type administrative territorial entity
SELECT DISTINCT ?c WHERE { ?c property:capital_of resource:Germany . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q586
SYSTEM
Berlin, Bonn
Q64 Q586
action filter_type
action find_reverse
entity Q183
relation P1376
type Q56061
[ANSWERS] are the county seat for that political territory
SELECT DISTINCT ?c WHERE { ?c property:P1376 resource:Q183 . ?c rdf:type ontology:Q56061 }
Berlin Bonn
Berlin and Bonn are the county seat for that political territory
Berlin Bonn
action filter_type
action find_reverse
entity Germany
relation capital of
type administrative territorial entity
SELECT DISTINCT ?c WHERE { ?c property:capital_of resource:Germany . ?c rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q1147395 Q515
USER
How many districts of Turkey or cities are twin city of that administrative territory ?
(c(Q1147395),P190,Q64) (c(Q515),P190,Q64) (c(Q1147395),P190,Q64) (c(Q515),P190,Q64) (c(Q1147395),P190,Q586) (c(Q515),P190,Q586)
[{'concept': 'Q1147395'}, 'P190', 'Q64'] [{'concept': 'Q515'}, 'P190', 'Q64'] [{'concept': 'Q1147395'}, 'P190', 'Q64'] [{'concept': 'Q515'}, 'P190', 'Q64'] [{'concept': 'Q1147395'}, 'P190', 'Q586'] [{'concept': 'Q515'}, 'P190', 'Q586']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q614184 } UNION { ?y property:P190 resource:Q614184 } UNION { ?z property:P190 resource:Q614184 } UNION { ?y property:P190 resource:Q614184 } UNION { ?z property:P190 resource:Q892680 } UNION { ?y property:P190 resource:Q892680 } } . ?z rdf:type ontology:Q1147395 . ?y rdf:type ontology:Q7930989 }
[{'concept': 'district of Turkey'}, 'sister city', 'Berlin'] [{'concept': 'city'}, 'sister city', 'Berlin'] [{'concept': 'district of Turkey'}, 'sister city', 'Berlin'] [{'concept': 'city'}, 'sister city', 'Berlin'] [{'concept': 'district of Turkey'}, 'sister city', 'Bonn'] [{'concept': 'city'}, 'sister city', 'Bonn']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Berlin } UNION { ?y property:sister_city resource:Berlin } UNION { ?z property:sister_city resource:Berlin } UNION { ?y property:sister_city resource:Berlin } UNION { ?z property:sister_city resource:Bonn } UNION { ?y property:sister_city resource:Bonn } } . ?z rdf:type ontology:district_of_Turkey . ?y rdf:type ontology:city }
[]
district of Turkey city
Quantitative|Count|Mult. entity type|Clarification
Q64
SYSTEM
Did you mean Berlin ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q614184 } UNION { ?y property:P190 resource:Q614184 } UNION { ?z property:P190 resource:Q614184 } UNION { ?y property:P190 resource:Q614184 } UNION { ?z property:P190 resource:Q892680 } UNION { ?y property:P190 resource:Q892680 } } . ?z rdf:type ontology:Q1147395 . ?y rdf:type ontology:Q7930989 }
Did you mean Berlin ?
Berlin
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Berlin } UNION { ?y property:sister_city resource:Berlin } UNION { ?z property:sister_city resource:Berlin } UNION { ?y property:sister_city resource:Berlin } UNION { ?z property:sister_city resource:Bonn } UNION { ?y property:sister_city resource:Bonn } } . ?z rdf:type ontology:district_of_Turkey . ?y rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q1147395),P190,Q64) (c(Q515),P190,Q64) (c(Q1147395),P190,Q64) (c(Q515),P190,Q64) (c(Q1147395),P190,Q586) (c(Q515),P190,Q586)
[{'concept': 'Q1147395'}, 'P190', 'Q64'] [{'concept': 'Q515'}, 'P190', 'Q64'] [{'concept': 'Q1147395'}, 'P190', 'Q64'] [{'concept': 'Q515'}, 'P190', 'Q64'] [{'concept': 'Q1147395'}, 'P190', 'Q586'] [{'concept': 'Q515'}, 'P190', 'Q586']
[{'concept': 'district of Turkey'}, 'sister city', 'Berlin'] [{'concept': 'city'}, 'sister city', 'Berlin'] [{'concept': 'district of Turkey'}, 'sister city', 'Berlin'] [{'concept': 'city'}, 'sister city', 'Berlin'] [{'concept': 'district of Turkey'}, 'sister city', 'Bonn'] [{'concept': 'city'}, 'sister city', 'Bonn']
[]
SYSTEM
5
Q3935 Q1486 Q217411 Q3616 Q9005
(c(Q1147395),P190,Q64) (c(Q515),P190,Q64) (c(Q1147395),P190,Q64) (c(Q515),P190,Q64) (c(Q1147395),P190,Q586) (c(Q515),P190,Q586)
[ANSWER]
[{'concept': 'Q1147395'}, 'P190', 'Q64'] [{'concept': 'Q515'}, 'P190', 'Q64'] [{'concept': 'Q1147395'}, 'P190', 'Q64'] [{'concept': 'Q515'}, 'P190', 'Q64'] [{'concept': 'Q1147395'}, 'P190', 'Q586'] [{'concept': 'Q515'}, 'P190', 'Q586']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P190 resource:Q614184 } UNION { ?y property:P190 resource:Q614184 } UNION { ?z property:P190 resource:Q614184 } UNION { ?y property:P190 resource:Q614184 } UNION { ?z property:P190 resource:Q892680 } UNION { ?y property:P190 resource:Q892680 } } . ?z rdf:type ontology:Q1147395 . ?y rdf:type ontology:Q7930989 }
Windhoek Buenos Aires Beyoğlu Tehran Brussels
5
[{'concept': 'district of Turkey'}, 'sister city', 'Berlin'] [{'concept': 'city'}, 'sister city', 'Berlin'] [{'concept': 'district of Turkey'}, 'sister city', 'Berlin'] [{'concept': 'city'}, 'sister city', 'Berlin'] [{'concept': 'district of Turkey'}, 'sister city', 'Bonn'] [{'concept': 'city'}, 'sister city', 'Bonn']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:sister_city resource:Berlin } UNION { ?y property:sister_city resource:Berlin } UNION { ?z property:sister_city resource:Berlin } UNION { ?y property:sister_city resource:Berlin } UNION { ?z property:sister_city resource:Bonn } UNION { ?y property:sister_city resource:Bonn } } . ?z rdf:type ontology:district_of_Turkey . ?y rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q1048835 Q20667921 Q56061
USER
Which political territories have max number of french administrative divisions and administrative territories have their first city ?
(c(Q20667921)|c(Q56061),P1376,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?g ) WHERE { { ?s property:P1376 ?i . ?i rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q20667921 } UNION { ?i rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q56061 . ?s property:P1376 ?i } } GROUP BY ?i } . FILTER ( ?g = ?n ) . { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?f ) WHERE { { ?k property:P1376 ?c . ?c rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q20667921 } UNION { ?k property:P1376 ?c . ?c rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q56061 } } GROUP BY ?c } } }
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?g ) WHERE { { ?s property:capital_of ?i . ?i rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:type_of_french_administrative_division } UNION { ?i rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:administrative_territorial_entity . ?s property:capital_of ?i } } GROUP BY ?i } . FILTER ( ?g = ?n ) . { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?f ) WHERE { { ?k property:capital_of ?c . ?c rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:type_of_french_administrative_division } UNION { ?k property:capital_of ?c . ?c rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:administrative_territorial_entity } } GROUP BY ?c } } }
[]
political territorial entity type of french administrative division administrative territorial entity
Q13353 Q193619 Q183
SYSTEM
Montserrat, Union of South Africa, Germany
Q13353 Q193619 Q183
(c(Q20667921)|c(Q56061),P1376,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
[ANSWERS] have max number of french administrative divisions and administrative territories have their first city
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?g ) WHERE { { ?s property:P1376 ?i . ?i rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q20667921 } UNION { ?i rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q56061 . ?s property:P1376 ?i } } GROUP BY ?i } . FILTER ( ?g = ?n ) . { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?f ) WHERE { { ?k property:P1376 ?c . ?c rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q20667921 } UNION { ?k property:P1376 ?c . ?c rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q56061 } } GROUP BY ?c } } }
Montserrat Union of South Africa Germany
Montserrat, Union of South Africa and Germany have max number of french administrative divisions and administrative territories have their first city
Montserrat Union of South Africa Germany
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?g ) WHERE { { ?s property:capital_of ?i . ?i rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:type_of_french_administrative_division } UNION { ?i rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:administrative_territorial_entity . ?s property:capital_of ?i } } GROUP BY ?i } . FILTER ( ?g = ?n ) . { SELECT DISTINCT ( MAX ( ?f ) AS ?n ) { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?f ) WHERE { { ?k property:capital_of ?c . ?c rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:type_of_french_administrative_division } UNION { ?k property:capital_of ?c . ?c rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:administrative_territorial_entity } } GROUP BY ?c } } }
[]