Simple Question (Direct)
Simple Question
Q506997
P19
Q56061
USER
Which administrative territory was Richard Nowakowski born at ?
(Q506997,P19,c(Q56061))
action filter_type
action find
entity Q506997
relation P19
type Q56061
['Q506997', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q506997 property:P19 ?f }
Richard Nowakowski
action filter_type
action find
entity Richard Nowakowski
relation place of birth
type administrative territorial entity
['Richard Nowakowski', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Richard_Nowakowski property:place_of_birth ?f }
[]
administrative territorial entity
Q640368
SYSTEM
Sztum
Q640368
(Q506997,P19,c(Q56061))
action filter_type
action find
entity Q506997
relation P19
type Q56061
Richard Nowakowski was born in [ANSWER]
['Q506997', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q506997 property:P19 ?f }
Sztum
Richard Nowakowski was born in Sztum
Sztum
action filter_type
action find
entity Richard Nowakowski
relation place of birth
type administrative territorial entity
['Richard Nowakowski', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Richard_Nowakowski property:place_of_birth ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q506997
P27
Q7275
USER
Which state is the country of citizenship of Richard Nowakowski ?
(Q506997,P27,c(Q7275))
action filter_type
action find
entity Q506997
relation P27
type Q7275
['Q506997', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { resource:Q506997 property:P27 ?a . ?a rdf:type ontology:Q7275 }
Richard Nowakowski
action filter_type
action find
entity Richard Nowakowski
relation country of citizenship
type state
['Richard Nowakowski', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { resource:Richard_Nowakowski property:country_of_citizenship ?a . ?a rdf:type ontology:state }
[]
state
Q16957
SYSTEM
East Germany
Q16957
(Q506997,P27,c(Q7275))
action filter_type
action find
entity Q506997
relation P27
type Q7275
[ANSWER] is the country of citizenship of Richard Nowakowski
['Q506997', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { resource:Q506997 property:P27 ?a . ?a rdf:type ontology:Q7275 }
East Germany
East Germany is the country of citizenship of Richard Nowakowski
East Germany
action filter_type
action find
entity Richard Nowakowski
relation country of citizenship
type state
['Richard Nowakowski', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { resource:Richard_Nowakowski property:country_of_citizenship ?a . ?a rdf:type ontology:state }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q506997
Q1048835
USER
And which political territory?
(Q506997,P27,c(Q1048835))
action filter_type
action find
entity Q506997
relation P27
type Q1048835
['Q506997', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q506997 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Richard Nowakowski
action filter_type
action find
entity Richard Nowakowski
relation country of citizenship
type political territorial entity
['Richard Nowakowski', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Richard_Nowakowski property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q506997,P27,c(Q1048835))
action filter_type
action find
entity Q506997
relation P27
type Q1048835
[ANSWER]
['Q506997', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q506997 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity Richard Nowakowski
relation country of citizenship
type political territorial entity
['Richard Nowakowski', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Richard_Nowakowski property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q183 Q225
P530
Q15617994
USER
Does Bosnia and Herzegovina hold diplomatic relationship with that political territory ?
(Q183,P530,Q225)
action is_in
entity Q225
action find
entity Q183
relation P530
['Q183', 'P530', 'Q225']
ASK WHERE { resource:Q183 property:P530 resource:Q225 }
Germany Bosnia and Herzegovina
action is_in
entity Bosnia and Herzegovina
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Bosnia and Herzegovina']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Bosnia_and_Herzegovina }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q183,P530,Q225)
action is_in
entity Q225
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q225']
ASK WHERE { resource:Q183 property:P530 resource:Q225 }
Yes
action is_in
entity Bosnia and Herzegovina
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Bosnia and Herzegovina']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Bosnia_and_Herzegovina }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3723825 Q225
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Bosnia and Herzegovina and are Emanuel Fillola an inhabitant of ?
AND((Q225,P530,c(Q15617994)), (Q3723825,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q225
relation P530
action find
entity Q3723825
relation P27
type Q15617994
{'AND': [['Q225', 'P530', {'concept': 'Q15617994'}], ['Q3723825', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q3723825 property:P27 ?u . resource:Q225 property:P530 ?u }
Emanuel Fillola Bosnia and Herzegovina
action filter_type
action intersection
action find
entity Bosnia and Herzegovina
relation diplomatic relation
action find
entity Emanuel Fillola
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Bosnia and Herzegovina', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Emanuel Fillola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Emanuel_Fillola property:country_of_citizenship ?u . resource:Bosnia_and_Herzegovina property:diplomatic_relation ?u }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q225,P530,c(Q15617994)), (Q3723825,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q225
relation P530
action find
entity Q3723825
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Bosnia and Herzegovina and are Emanuel Fillola an inhabitant of
{'AND': [['Q225', 'P530', {'concept': 'Q15617994'}], ['Q3723825', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q3723825 property:P27 ?u . resource:Q225 property:P530 ?u }
Italy
Italy have diplomatic relationships with Bosnia and Herzegovina and are Emanuel Fillola an inhabitant of
Italy
action filter_type
action intersection
action find
entity Bosnia and Herzegovina
relation diplomatic relation
action find
entity Emanuel Fillola
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Bosnia and Herzegovina', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Emanuel Fillola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Emanuel_Fillola property:country_of_citizenship ?u . resource:Bosnia_and_Herzegovina property:diplomatic_relation ?u }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q38 Q556983 Q225
P530
Q15617994
USER
Does that administrative territory have tactful political relations with Sollerup and Bosnia and Herzegovina ?
(Q38,P530,Q556983) (Q38,P530,Q225)
action is_in
entity Q38
action intersection
action find_reverse
entity Q556983
relation P530
action find_reverse
entity Q225
relation P530
['Q38', 'P530', 'Q556983'] ['Q38', 'P530', 'Q225']
ASK WHERE { resource:Q38 property:P530 resource:Q556983 . resource:Q38 property:P530 resource:Q225 }
Italy Sollerup Bosnia and Herzegovina
action is_in
entity Italy
action intersection
action find_reverse
entity Sollerup
relation diplomatic relation
action find_reverse
entity Bosnia and Herzegovina
relation diplomatic relation
['Italy', 'diplomatic relation', 'Sollerup'] ['Italy', 'diplomatic relation', 'Bosnia and Herzegovina']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Sollerup . resource:Italy property:diplomatic_relation resource:Bosnia_and_Herzegovina }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q38,P530,Q556983) (Q38,P530,Q225)
action is_in
entity Q38
action intersection
action find_reverse
entity Q556983
relation P530
action find_reverse
entity Q225
relation P530
[ANSWER]
['Q38', 'P530', 'Q556983'] ['Q38', 'P530', 'Q225']
ASK WHERE { resource:Q38 property:P530 resource:Q556983 . resource:Q38 property:P530 resource:Q225 }
NO and YES respectively
action is_in
entity Italy
action intersection
action find_reverse
entity Sollerup
relation diplomatic relation
action find_reverse
entity Bosnia and Herzegovina
relation diplomatic relation
['Italy', 'diplomatic relation', 'Sollerup'] ['Italy', 'diplomatic relation', 'Bosnia and Herzegovina']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Sollerup . resource:Italy property:diplomatic_relation resource:Bosnia_and_Herzegovina }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P291
Q571
USER
Which books were published in Italy ?
action filter_type
action find_reverse
entity Q38
relation P291
type Q571
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q571 . ?b property:P291 resource:Q38 }
Italy
action filter_type
action find_reverse
entity Italy
relation place of publication
type book
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:book . ?b property:place_of_publication resource:Italy }
[]
book
Q27620404 Q18647256
SYSTEM
Morgante, Il Principe, Italia, 1814
Q27620404 Q18647256
action filter_type
action find_reverse
entity Q38
relation P291
type Q571
[ANSWERS]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q571 . ?b property:P291 resource:Q38 }
Morgante Il Principe, Italia, 1814
Morgante and Il Principe, Italia, 1814 were published in Italy
Morgante Il Principe, Italia, 1814
action filter_type
action find_reverse
entity Italy
relation place of publication
type book
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:book . ?b property:place_of_publication resource:Italy }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q27620404 Q18647256
P50
Q502895
USER
Who penned Morgante and Il Principe, Italia, 1814 ?
(Q27620404,P50,c(Q502895)) (Q18647256,P50,c(Q502895))
action union
action filter_type
action find
entity Q27620404
relation P50
type Q502895
action filter_type
action find
entity Q18647256
relation P50
type Q502895
['Q27620404', 'P50', {'concept': 'Q502895'}] ['Q18647256', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { resource:Q27620404 property:P50 ?l . ?l rdf:type ontology:Q502895 } UNION { resource:Q18647256 property:P50 ?l . ?l rdf:type ontology:Q502895 } }
Morgante Il Principe, Italia, 1814
action union
action filter_type
action find
entity Morgante
relation author
type common name
action filter_type
action find
entity Il Principe, Italia, 1814
relation author
type common name
['Morgante', 'author', {'concept': 'common name'}] ['Il Principe, Italia, 1814', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { resource:Morgante property:author ?l . ?l rdf:type ontology:common_name } UNION { resource:Il_Principe,_Italia,_1814 property:author ?l . ?l rdf:type ontology:common_name } }
[]
common name
Q631635 Q1399
SYSTEM
Luigi Pulci, Niccolò Machiavelli
Q631635 Q1399
(Q27620404,P50,c(Q502895)) (Q18647256,P50,c(Q502895))
action union
action filter_type
action find
entity Q27620404
relation P50
type Q502895
action filter_type
action find
entity Q18647256
relation P50
type Q502895
[ANSWERS] penned Morgante and Il Principe, Italia, 1814
['Q27620404', 'P50', {'concept': 'Q502895'}] ['Q18647256', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { resource:Q27620404 property:P50 ?l . ?l rdf:type ontology:Q502895 } UNION { resource:Q18647256 property:P50 ?l . ?l rdf:type ontology:Q502895 } }
Luigi Pulci Niccolò Machiavelli
Luigi Pulci and Niccolò Machiavelli penned Morgante and Il Principe, Italia, 1814
Luigi Pulci Niccolò Machiavelli
action union
action filter_type
action find
entity Morgante
relation author
type common name
action filter_type
action find
entity Il Principe, Italia, 1814
relation author
type common name
['Morgante', 'author', {'concept': 'common name'}] ['Il Principe, Italia, 1814', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { resource:Morgante property:author ?l . ?l rdf:type ontology:common_name } UNION { resource:Il_Principe,_Italia,_1814 property:author ?l . ?l rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q631635 Q1399
P7
Q502895
USER
Who have Luigi Pulci and Niccolò Machiavelli as their sibling ?
(c(Q502895),P7,Q631635) (c(Q502895),P7,Q1399)
action union
action filter_type
action find
entity Q631635
relation P7
type Q502895
action filter_type
action find
entity Q1399
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q631635'] [{'concept': 'Q502895'}, 'P7', 'Q1399']
SELECT DISTINCT ?e WHERE { { ?e rdf:type ontology:Q502895 . resource:Q631635 property:P7 ?e } UNION { resource:Q1399 property:P7 ?e . ?e rdf:type ontology:Q502895 } }
Luigi Pulci Niccolò Machiavelli
action union
action filter_type
action find
entity Luigi Pulci
relation brother
type common name
action filter_type
action find
entity Niccolò Machiavelli
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Luigi Pulci'] [{'concept': 'common name'}, 'brother', 'Niccolò Machiavelli']
SELECT DISTINCT ?e WHERE { { ?e rdf:type ontology:common_name . resource:Luigi_Pulci property:brother ?e } UNION { resource:Niccolò_Machiavelli property:brother ?e . ?e rdf:type ontology:common_name } }
[]
common name
Q589545 Q3838242 Q15851280
SYSTEM
Bernardo Pulci, Luca Pulci, Totto Machiavelli
Q589545 Q3838242 Q15851280
(c(Q502895),P7,Q631635) (c(Q502895),P7,Q1399)
action union
action filter_type
action find
entity Q631635
relation P7
type Q502895
action filter_type
action find
entity Q1399
relation P7
type Q502895
[ANSWERS] have Luigi Pulci and Niccolò Machiavelli as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q631635'] [{'concept': 'Q502895'}, 'P7', 'Q1399']
SELECT DISTINCT ?e WHERE { { ?e rdf:type ontology:Q502895 . resource:Q631635 property:P7 ?e } UNION { resource:Q1399 property:P7 ?e . ?e rdf:type ontology:Q502895 } }
Bernardo Pulci Luca Pulci Totto Machiavelli
Bernardo Pulci, Luca Pulci and Totto Machiavelli have Luigi Pulci and Niccolò Machiavelli as their sibling
Bernardo Pulci Luca Pulci Totto Machiavelli
action union
action filter_type
action find
entity Luigi Pulci
relation brother
type common name
action filter_type
action find
entity Niccolò Machiavelli
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Luigi Pulci'] [{'concept': 'common name'}, 'brother', 'Niccolò Machiavelli']
SELECT DISTINCT ?e WHERE { { ?e rdf:type ontology:common_name . resource:Luigi_Pulci property:brother ?e } UNION { resource:Niccolò_Machiavelli property:brother ?e . ?e rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15851280
P40
Q502895
USER
Whose child is that one ?
(c(Q502895),P40,Q15851280)
action filter_type
action find_reverse
entity Q15851280
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q15851280']
SELECT DISTINCT ?l WHERE { ?l property:P40 resource:Q15851280 . ?l rdf:type ontology:Q502895 }
Totto Machiavelli
action filter_type
action find_reverse
entity Totto Machiavelli
relation child
type common name
[{'concept': 'common name'}, 'child', 'Totto Machiavelli']
SELECT DISTINCT ?l WHERE { ?l property:child resource:Totto_Machiavelli . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q589545
SYSTEM
Did you mean Bernardo Pulci ?
Q589545 Q3838242 Q15851280
(c(Q502895),P40,Q589545) (c(Q502895),P40,Q3838242) (c(Q502895),P40,Q15851280)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q589545'] [{'concept': 'Q502895'}, 'P40', 'Q3838242'] [{'concept': 'Q502895'}, 'P40', 'Q15851280']
SELECT DISTINCT ?l WHERE { ?l property:P40 resource:Q15851280 . ?l rdf:type ontology:Q502895 }
Bernardo Pulci Luca Pulci Totto Machiavelli
Did you mean Bernardo Pulci ?
Bernardo Pulci
[{'concept': 'common name'}, 'child', 'Bernardo Pulci'] [{'concept': 'common name'}, 'child', 'Luca Pulci'] [{'concept': 'common name'}, 'child', 'Totto Machiavelli']
SELECT DISTINCT ?l WHERE { ?l property:child resource:Totto_Machiavelli . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Totto Machiavelli. Could you tell me the answer for that?
(c(Q502895),P40,Q15851280)
Q15851280
[{'concept': 'Q502895'}, 'P40', 'Q15851280']
[{'concept': 'common name'}, 'child', 'Totto Machiavelli']
[]
Q823072
SYSTEM
Bernardo di Niccolò Machiavelli
Q823072
(c(Q502895),P40,Q15851280)
action filter_type
action find_reverse
entity Q15851280
relation P40
type Q502895
That [ANSWER] is that one
[{'concept': 'Q502895'}, 'P40', 'Q15851280']
SELECT DISTINCT ?l WHERE { ?l property:P40 resource:Q15851280 . ?l rdf:type ontology:Q502895 }
Bernardo di Niccolò Machiavelli
That Bernardo di Niccolò Machiavelli is that one
Bernardo di Niccolò Machiavelli
action filter_type
action find_reverse
entity Totto Machiavelli
relation child
type common name
[{'concept': 'common name'}, 'child', 'Totto Machiavelli']
SELECT DISTINCT ?l WHERE { ?l property:child resource:Totto_Machiavelli . ?l rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q823072 Q10530240
P40
Q502895
USER
Is Allan Scott an offspring of that one ?
(Q823072,P40,Q10530240)
action is_in
entity Q10530240
action find
entity Q823072
relation P40
['Q823072', 'P40', 'Q10530240']
ASK WHERE { resource:Q823072 property:P40 resource:Q10530240 }
Bernardo di Niccolò Machiavelli Allan Scott
action is_in
entity Allan Scott
action find
entity Bernardo di Niccolò Machiavelli
relation child
['Bernardo di Niccolò Machiavelli', 'child', 'Allan Scott']
ASK WHERE { resource:Bernardo_di_Niccolò_Machiavelli property:child resource:Allan_Scott }
[]
common name
SYSTEM
NO
(Q823072,P40,Q10530240)
action is_in
entity Q10530240
action find
entity Q823072
relation P40
[ANSWER]
['Q823072', 'P40', 'Q10530240']
ASK WHERE { resource:Q823072 property:P40 resource:Q10530240 }
No
action is_in
entity Allan Scott
action find
entity Bernardo di Niccolò Machiavelli
relation child
['Bernardo di Niccolò Machiavelli', 'child', 'Allan Scott']
ASK WHERE { resource:Bernardo_di_Niccolò_Machiavelli property:child resource:Allan_Scott }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q56061 Q15617994 Q7275
USER
Which states have exactly 1 administrative territories and administrative territories as the type of government ?
(c(Q7275),P122,c(Q56061)|c(Q15617994))
action equal
action union
action find_tuple_counts
relation P122
type Q7275
type Q56061
action find_tuple_counts
relation P122
type Q7275
type Q15617994
value 1
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q56061'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?a ) AS ?y ) WHERE { { ?w property:P122 ?a . ?w rdf:type ontology:Q7275 . ?a rdf:type ontology:Q56061 } UNION { ?w property:P122 ?a . ?w rdf:type ontology:Q7275 . ?a rdf:type ontology:Q15617994 } } GROUP BY ?w } . FILTER ( ?y = 1 ) }
action equal
action union
action find_tuple_counts
relation basic form of government
type state
type administrative territorial entity
action find_tuple_counts
relation basic form of government
type state
type designation for an administrative territorial entity
value 1
[{'concept': 'state'}, 'basic form of government', [{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?a ) AS ?y ) WHERE { { ?w property:basic_form_of_government ?a . ?w rdf:type ontology:state . ?a rdf:type ontology:administrative_territorial_entity } UNION { ?w property:basic_form_of_government ?a . ?w rdf:type ontology:state . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?w } . FILTER ( ?y = 1 ) }
[]
administrative territorial entity designation for an administrative territorial entity state
Q37024 Q2006542 Q310293
SYSTEM
Serbia and Montenegro, Dominion of Pakistan, Saar Protectorate
Q210163 Q2340665 Q2475921 Q889394 Q190513 Q631210 Q834486 Q2006542 Q726798 Q941881 Q37024 Q503623 Q186537 Q8146595 Q310293 Q1658411 Q1493843 Q2088324 Q71747 Q10921634 Q680997 Q1517772 Q1142179 Q1083009 Q5148517
(c(Q7275),P122,c(Q56061)|c(Q15617994))
action equal
action union
action find_tuple_counts
relation P122
type Q7275
type Q56061
action find_tuple_counts
relation P122
type Q7275
type Q15617994
value 1
[ANSWERS] have exactly 1 administrative territories and administrative territories as the type of government
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q56061'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?a ) AS ?y ) WHERE { { ?w property:P122 ?a . ?w rdf:type ontology:Q7275 . ?a rdf:type ontology:Q56061 } UNION { ?w property:P122 ?a . ?w rdf:type ontology:Q7275 . ?a rdf:type ontology:Q15617994 } } GROUP BY ?w } . FILTER ( ?y = 1 ) }
Astrakhan Khanate Basutoland Outer Mongolia Portuguese Mozambique Khanate of Sibir Nogai Horde Federation of South Arabia Dominion of Pakistan Tulunids Netherlands New Guinea Serbia and Montenegro Gold Coast Khanate of Kazan Upingtonia Saar Protectorate Kingdom of Sarawak Klein Vrystaat Colonial Brazil Duchy of Brittany Khoshut Khanate Principality of Lower Pannonia Protectorate of South Arabia Orange River Colony Principality of Wy Colony and Protectorate of Nigeria
Serbia and Montenegro, Dominion of Pakistan and Saar Protectorate have exactly 1 administrative territories and administrative territories as the type of government
Serbia and Montenegro Dominion of Pakistan Saar Protectorate
action equal
action union
action find_tuple_counts
relation basic form of government
type state
type administrative territorial entity
action find_tuple_counts
relation basic form of government
type state
type designation for an administrative territorial entity
value 1
[{'concept': 'state'}, 'basic form of government', [{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?a ) AS ?y ) WHERE { { ?w property:basic_form_of_government ?a . ?w rdf:type ontology:state . ?a rdf:type ontology:administrative_territorial_entity } UNION { ?w property:basic_form_of_government ?a . ?w rdf:type ontology:state . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?w } . FILTER ( ?y = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1376
Q7275 Q486972
USER
Which human settlements are center of administration for max number of states ?
(c(Q486972),P1376,c(Q7275))
action argmax
action find_tuple_counts
relation P1376
type Q486972
type Q7275
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?y ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?g ) WHERE { ?t property:P1376 ?f . ?t rdf:type ontology:Q486972 . ?f rdf:type ontology:Q7275 } GROUP BY ?t } } . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?p ) WHERE { ?k property:P1376 ?u . ?k rdf:type ontology:Q486972 . ?u rdf:type ontology:Q7275 } GROUP BY ?k } . FILTER ( ?p = ?y ) }
action argmax
action find_tuple_counts
relation capital of
type human settlement
type state
[{'concept': 'human settlement'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?y ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?g ) WHERE { ?t property:capital_of ?f . ?t rdf:type ontology:human_settlement . ?f rdf:type ontology:state } GROUP BY ?t } } . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?p ) WHERE { ?k property:capital_of ?u . ?k rdf:type ontology:human_settlement . ?u rdf:type ontology:state } GROUP BY ?k } . FILTER ( ?p = ?y ) }
[]
state human settlement
Q31487
SYSTEM
Kraków
Q31487
(c(Q486972),P1376,c(Q7275))
action argmax
action find_tuple_counts
relation P1376
type Q486972
type Q7275
[ANSWER] is center of administration for max number of states
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?y ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?g ) WHERE { ?t property:P1376 ?f . ?t rdf:type ontology:Q486972 . ?f rdf:type ontology:Q7275 } GROUP BY ?t } } . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?p ) WHERE { ?k property:P1376 ?u . ?k rdf:type ontology:Q486972 . ?u rdf:type ontology:Q7275 } GROUP BY ?k } . FILTER ( ?p = ?y ) }
Kraków
Kraków is center of administration for max number of states
Kraków
action argmax
action find_tuple_counts
relation capital of
type human settlement
type state
[{'concept': 'human settlement'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?y ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?g ) WHERE { ?t property:capital_of ?f . ?t rdf:type ontology:human_settlement . ?f rdf:type ontology:state } GROUP BY ?t } } . { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?p ) WHERE { ?k property:capital_of ?u . ?k rdf:type ontology:human_settlement . ?u rdf:type ontology:state } GROUP BY ?k } . FILTER ( ?p = ?y ) }
[]