Simple Question (Direct)
Simple Question
Q1696714
P19
Q15617994
USER
Which administrative territory is the place of birth of Johann Zacharias Leonhard Junkheim ?
(Q1696714,P19,c(Q15617994))
action filter_type
action find
entity Q1696714
relation P19
type Q15617994
['Q1696714', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q1696714 property:P19 ?l . ?l rdf:type ontology:Q15617994 }
Johann Zacharias Leonhard Junkheim
action filter_type
action find
entity Johann Zacharias Leonhard Junkheim
relation place of birth
type designation for an administrative territorial entity
['Johann Zacharias Leonhard Junkheim', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Johann_Zacharias_Leonhard_Junkheim property:place_of_birth ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q14859
SYSTEM
Ansbach
Q14859
(Q1696714,P19,c(Q15617994))
action filter_type
action find
entity Q1696714
relation P19
type Q15617994
[ANSWER] is the place of birth of Johann Zacharias Leonhard Junkheim
['Q1696714', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q1696714 property:P19 ?l . ?l rdf:type ontology:Q15617994 }
Ansbach
Ansbach is the place of birth of Johann Zacharias Leonhard Junkheim
Ansbach
action filter_type
action find
entity Johann Zacharias Leonhard Junkheim
relation place of birth
type designation for an administrative territorial entity
['Johann Zacharias Leonhard Junkheim', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Johann_Zacharias_Leonhard_Junkheim property:place_of_birth ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q14859
P17
Q1048835
USER
Which political territory does that administrative territory belong to ?
(Q14859,P17,c(Q1048835))
action filter_type
action find
entity Q14859
relation P17
type Q1048835
['Q14859', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1048835 . resource:Q14859 property:P17 ?s }
Ansbach
action filter_type
action find
entity Ansbach
relation country
type political territorial entity
['Ansbach', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Ansbach property:country ?s }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q14859,P17,c(Q1048835))
action filter_type
action find
entity Q14859
relation P17
type Q1048835
That administrative territory belongs to Federal [ANSWER]
['Q14859', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1048835 . resource:Q14859 property:P17 ?s }
Germany
That administrative territory belongs to Federal Germany
Germany
action filter_type
action find
entity Ansbach
relation country
type political territorial entity
['Ansbach', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Ansbach property:country ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14859
P206
Q355304
USER
Which watercourse is situated nearby Ansbach ?
(Q14859,P206,c(Q355304))
action filter_type
action find
entity Q14859
relation P206
type Q355304
['Q14859', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?w WHERE { resource:Q14859 property:P206 ?w . ?w rdf:type ontology:Q355304 }
Ansbach
action filter_type
action find
entity Ansbach
relation located next to body of water
type watercourse
['Ansbach', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?w WHERE { resource:Ansbach property:located_next_to_body_of_water ?w . ?w rdf:type ontology:watercourse }
[]
watercourse
Q455779
SYSTEM
Fränkische Rezat
Q455779
(Q14859,P206,c(Q355304))
action filter_type
action find
entity Q14859
relation P206
type Q355304
[ANSWER] is situated nearby Ansbach
['Q14859', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?w WHERE { resource:Q14859 property:P206 ?w . ?w rdf:type ontology:Q355304 }
Fränkische Rezat
Fränkische Rezat is situated nearby Ansbach
Fränkische Rezat
action filter_type
action find
entity Ansbach
relation located next to body of water
type watercourse
['Ansbach', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?w WHERE { resource:Ansbach property:located_next_to_body_of_water ?w . ?w rdf:type ontology:watercourse }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q549749
P138
Q15617994 Q16521 Q15617994
USER
Which administrative territories are more number of taxons and administrative territories named after than Heinsen ?
(c(Q16521)|c(Q15617994),P138,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q16521
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q549749
relation P138
type Q16521
type Q15617994
[[{'concept': 'Q16521'}, {'concept': 'Q15617994'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?h WHERE { VALUES ( ?o ) { ( ontology:Q16521 ) ( ontology:Q15617994 ) } . ?y rdf:type ?o } GROUP BY ?h } . FILTER ( ?e > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { ?c property:P138 resource:Q549749 . { ?c rdf:type ?i . VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q16521 ) } } } } }
Heinsen
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type taxon
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Heinsen
relation named after
type taxon
type designation for an administrative territorial entity
[[{'concept': 'taxon'}, {'concept': 'designation for an administrative territorial entity'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?h WHERE { VALUES ( ?o ) { ( ontology:taxon ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?y rdf:type ?o } GROUP BY ?h } . FILTER ( ?e > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { ?c property:named_after resource:Heinsen . { ?c rdf:type ?i . VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:taxon ) } } } } }
[]
designation for an administrative territorial entity taxon designation for an administrative territorial entity
Q717 Q869 Q928
SYSTEM
Venezuela, Thailand, Philippines
Q1458 Q159856 Q33788 Q53873 Q712 Q717 Q1142326 Q10957559 Q917 Q819 Q869 Q928 Q697787
(c(Q16521)|c(Q15617994),P138,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q16521
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q549749
relation P138
type Q16521
type Q15617994
[ANSWERS] are more number of taxons and administrative territories named after than Heinsen
[[{'concept': 'Q16521'}, {'concept': 'Q15617994'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?h WHERE { VALUES ( ?o ) { ( ontology:Q16521 ) ( ontology:Q15617994 ) } . ?y rdf:type ?o } GROUP BY ?h } . FILTER ( ?e > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { ?c property:P138 resource:Q549749 . { ?c rdf:type ?i . VALUES ( ?i ) { ( ontology:Q15617994 ) ( ontology:Q16521 ) } } } } }
Calabria Duchy of Brabant New Caledonia Diamante Fiji Venezuela Seine Moldavia Bhutan Laos Thailand Philippines Duchy of Limburg
Venezuela, Thailand and Philippines are more number of taxons and administrative territories named after than Heinsen
Venezuela Thailand Philippines
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type taxon
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Heinsen
relation named after
type taxon
type designation for an administrative territorial entity
[[{'concept': 'taxon'}, {'concept': 'designation for an administrative territorial entity'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?h WHERE { VALUES ( ?o ) { ( ontology:taxon ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?y rdf:type ?o } GROUP BY ?h } . FILTER ( ?e > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { ?c property:named_after resource:Heinsen . { ?c rdf:type ?i . VALUES ( ?i ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:taxon ) } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q355304 Q3305213 Q11060274
USER
How many watercourses are depicted in approximately 3 paintings or prints ?
(c(Q3305213)|c(Q11060274),P180,c(Q355304))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q355304
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q355304
type Q11060274
value 3
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?s WHERE { { ?f property:P180 ?s . ?s rdf:type ontology:Q355304 . ?f rdf:type ontology:Q3305213 } UNION { ?f property:P180 ?s . ?s rdf:type ontology:Q355304 . ?f rdf:type ontology:Q11060274 } } GROUP BY ?s } . FILTER ( ?d = 3 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type watercourse
type painting
action find_reverse_tuple_counts
relation depicts
type watercourse
type print
value 3
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?s WHERE { { ?f property:depicts ?s . ?s rdf:type ontology:watercourse . ?f rdf:type ontology:painting } UNION { ?f property:depicts ?s . ?s rdf:type ontology:watercourse . ?f rdf:type ontology:print } } GROUP BY ?s } . FILTER ( ?d = 3 ) }
[]
watercourse painting print
SYSTEM
4
Q309243 Q1469 Q47521 Q3140
(c(Q3305213)|c(Q11060274),P180,c(Q355304))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q355304
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q355304
type Q11060274
value 3
[ANSWER]
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?s WHERE { { ?f property:P180 ?s . ?s rdf:type ontology:Q355304 . ?f rdf:type ontology:Q3305213 } UNION { ?f property:P180 ?s . ?s rdf:type ontology:Q355304 . ?f rdf:type ontology:Q11060274 } } GROUP BY ?s } . FILTER ( ?d = 3 ) }
Grand Canal Loire stream Hudson River
4
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type watercourse
type painting
action find_reverse_tuple_counts
relation depicts
type watercourse
type print
value 3
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?s WHERE { { ?f property:depicts ?s . ?s rdf:type ontology:watercourse . ?f rdf:type ontology:painting } UNION { ?f property:depicts ?s . ?s rdf:type ontology:watercourse . ?f rdf:type ontology:print } } GROUP BY ?s } . FILTER ( ?d = 3 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with approximately 116 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 116
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { ?e property:P530 ?n . ?e rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?c = 116 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 116
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { ?e property:diplomatic_relation ?n . ?e rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?c = 116 ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 116
[ANSWERS] have diplomatic relationships with approximately 116 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { ?e property:P530 ?n . ?e rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?c = 116 ) }
Germany Australia
Germany and Australia have diplomatic relationships with approximately 116 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 116
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?c ) WHERE { ?e property:diplomatic_relation ?n . ?e rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?c = 116 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q183 Q408
P85
Q7725634
USER
What are the national anthems of Germany and Australia ?
(Q183,P85,c(Q7725634)) (Q408,P85,c(Q7725634))
action union
action filter_type
action find
entity Q183
relation P85
type Q7725634
action filter_type
action find
entity Q408
relation P85
type Q7725634
['Q183', 'P85', {'concept': 'Q7725634'}] ['Q408', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { { resource:Q408 property:P85 ?z . ?z rdf:type ontology:Q7725634 } UNION { resource:Q183 property:P85 ?z . ?z rdf:type ontology:Q7725634 } }
Germany Australia
action union
action filter_type
action find
entity Germany
relation anthem
type literary work
action filter_type
action find
entity Australia
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}] ['Australia', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { { resource:Australia property:anthem ?z . ?z rdf:type ontology:literary_work } UNION { resource:Germany property:anthem ?z . ?z rdf:type ontology:literary_work } }
[]
literary work
Q44042 Q40807
SYSTEM
Das Lied der Deutschen, God Save the Queen
Q44042 Q40807
(Q183,P85,c(Q7725634)) (Q408,P85,c(Q7725634))
action union
action filter_type
action find
entity Q183
relation P85
type Q7725634
action filter_type
action find
entity Q408
relation P85
type Q7725634
The national anthems of Germany and Australia are [ANSWERS]
['Q183', 'P85', {'concept': 'Q7725634'}] ['Q408', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { { resource:Q408 property:P85 ?z . ?z rdf:type ontology:Q7725634 } UNION { resource:Q183 property:P85 ?z . ?z rdf:type ontology:Q7725634 } }
Das Lied der Deutschen God Save the Queen
The national anthems of Germany and Australia are Das Lied der Deutschen and God Save the Queen
Das Lied der Deutschen God Save the Queen
action union
action filter_type
action find
entity Germany
relation anthem
type literary work
action filter_type
action find
entity Australia
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}] ['Australia', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { { resource:Australia property:anthem ?z . ?z rdf:type ontology:literary_work } UNION { resource:Germany property:anthem ?z . ?z rdf:type ontology:literary_work } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q44042
P361
Q484692
USER
Which hymn is a component of that literary work ?
(c(Q484692),P361,Q44042)
action filter_type
action find_reverse
entity Q44042
relation P361
type Q484692
[{'concept': 'Q484692'}, 'P361', 'Q44042']
SELECT DISTINCT ?w WHERE { ?w property:P361 resource:Q44042 . ?w rdf:type ontology:Q484692 }
Das Lied der Deutschen
action filter_type
action find_reverse
entity Das Lied der Deutschen
relation part of
type hymn
[{'concept': 'hymn'}, 'part of', 'Das Lied der Deutschen']
SELECT DISTINCT ?w WHERE { ?w property:part_of resource:Das_Lied_der_Deutschen . ?w rdf:type ontology:hymn }
[]
hymn
Clarification for simple ques.
Q40807
SYSTEM
Did you mean God Save the Queen ?
Q44042 Q40807
(c(Q484692),P361,Q44042) (c(Q484692),P361,Q40807)
[ANSWER]
[{'concept': 'Q484692'}, 'P361', 'Q44042'] [{'concept': 'Q484692'}, 'P361', 'Q40807']
SELECT DISTINCT ?w WHERE { ?w property:P361 resource:Q44042 . ?w rdf:type ontology:Q484692 }
Das Lied der Deutschen God Save the Queen
Did you mean God Save the Queen ?
God Save the Queen
[{'concept': 'hymn'}, 'part of', 'Das Lied der Deutschen'] [{'concept': 'hymn'}, 'part of', 'God Save the Queen']
SELECT DISTINCT ?w WHERE { ?w property:part_of resource:Das_Lied_der_Deutschen . ?w rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
USER
No, I meant Das Lied der Deutschen. Could you tell me the answer for that?
(c(Q484692),P361,Q44042)
Q44042
[{'concept': 'Q484692'}, 'P361', 'Q44042']
[{'concept': 'hymn'}, 'part of', 'Das Lied der Deutschen']
[]
Q4122341
SYSTEM
National Anthem of Germany
Q4122341
(c(Q484692),P361,Q44042)
action filter_type
action find_reverse
entity Q44042
relation P361
type Q484692
[ANSWER] is a component of that literary work
[{'concept': 'Q484692'}, 'P361', 'Q44042']
SELECT DISTINCT ?w WHERE { ?w property:P361 resource:Q44042 . ?w rdf:type ontology:Q484692 }
National Anthem of Germany
National Anthem of Germany is a component of that literary work
National Anthem of Germany
action filter_type
action find_reverse
entity Das Lied der Deutschen
relation part of
type hymn
[{'concept': 'hymn'}, 'part of', 'Das Lied der Deutschen']
SELECT DISTINCT ?w WHERE { ?w property:part_of resource:Das_Lied_der_Deutschen . ?w rdf:type ontology:hymn }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4122341 Q44042
P361
Q7725634
USER
Is that hymn a component of Das Lied der Deutschen ?
(Q4122341,P361,Q44042)
action is_in
entity Q44042
action find
entity Q4122341
relation P361
['Q4122341', 'P361', 'Q44042']
ASK WHERE { resource:Q4122341 property:P361 resource:Q44042 }
National Anthem of Germany Das Lied der Deutschen
action is_in
entity Das Lied der Deutschen
action find
entity National Anthem of Germany
relation part of
['National Anthem of Germany', 'part of', 'Das Lied der Deutschen']
ASK WHERE { resource:National_Anthem_of_Germany property:part_of resource:Das_Lied_der_Deutschen }
[]
literary work
SYSTEM
YES
(Q4122341,P361,Q44042)
action is_in
entity Q44042
action find
entity Q4122341
relation P361
[ANSWER]
['Q4122341', 'P361', 'Q44042']
ASK WHERE { resource:Q4122341 property:P361 resource:Q44042 }
Yes
action is_in
entity Das Lied der Deutschen
action find
entity National Anthem of Germany
relation part of
['National Anthem of Germany', 'part of', 'Das Lied der Deutschen']
ASK WHERE { resource:National_Anthem_of_Germany property:part_of resource:Das_Lied_der_Deutschen }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5484009 Q408
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Australia or are the countries of citizenship of Tauno Alhava ?
OR((Q408,P530,c(Q15617994)), (Q5484009,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q5484009
relation P27
type Q15617994
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q5484009', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . { { resource:Q408 property:P530 ?q } UNION { resource:Q5484009 property:P27 ?q } } }
Tauno Alhava Australia
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity Tauno Alhava
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Tauno Alhava', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Australia property:diplomatic_relation ?q } UNION { resource:Tauno_Alhava property:country_of_citizenship ?q } } }
[]
designation for an administrative territorial entity
Q928 Q1020 Q711 Q1027 Q712 Q298 Q33788 Q801 Q794 Q55
SYSTEM
Some of them are Philippines, Malawi, Mongolia, Mauritius, Fiji, Chile, New Caledonia, Israel, Iran, Netherlands
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q712 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q29 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q833 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q819 Q678 Q33788 Q869 Q953
OR((Q408,P530,c(Q15617994)), (Q5484009,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q5484009
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Australia or are the countries of citizenship of Tauno Alhava
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q5484009', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . { { resource:Q408 property:P530 ?q } UNION { resource:Q5484009 property:P27 ?q } } }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Fiji Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Spain Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Malaysia Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Laos Tonga New Caledonia Thailand Zambia
Philippines, Malawi, Mongolia, Mauritius, Fiji, Chile, New Caledonia, Israel, Iran and Netherlands have a diplomatic relationship with Australia or are the countries of citizenship of Tauno Alhava
Philippines Malawi Mongolia Mauritius Fiji Chile New Caledonia Israel Iran Netherlands
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity Tauno Alhava
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Tauno Alhava', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Australia property:diplomatic_relation ?q } UNION { resource:Tauno_Alhava property:country_of_citizenship ?q } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q1048835
USER
How many political territories holds diplomatic relationship with that administrative territory ?
(Q712,P530,c(Q1048835))
['Q712', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1184114 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
['Fiji', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Fiji property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q801
SYSTEM
Did you mean Israel ?
(Q928,P530,c(Q1048835)) (Q1020,P530,c(Q1048835)) (Q711,P530,c(Q1048835)) (Q1027,P530,c(Q1048835)) (Q712,P530,c(Q1048835)) (Q298,P530,c(Q1048835)) (Q33788,P530,c(Q1048835)) (Q801,P530,c(Q1048835)) (Q794,P530,c(Q1048835)) (Q55,P530,c(Q1048835))
[ANSWER]
['Q928', 'P530', {'concept': 'Q1048835'}] ['Q1020', 'P530', {'concept': 'Q1048835'}] ['Q711', 'P530', {'concept': 'Q1048835'}] ['Q1027', 'P530', {'concept': 'Q1048835'}] ['Q712', 'P530', {'concept': 'Q1048835'}] ['Q298', 'P530', {'concept': 'Q1048835'}] ['Q33788', 'P530', {'concept': 'Q1048835'}] ['Q801', 'P530', {'concept': 'Q1048835'}] ['Q794', 'P530', {'concept': 'Q1048835'}] ['Q55', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1184114 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Did you mean Israel ?
Israel
['Philippines', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Malawi', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Mongolia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Mauritius', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Fiji', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Chile', 'diplomatic relation', {'concept': 'political territorial entity'}] ['New Caledonia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Iran', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Fiji property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Fiji. Could you tell me the answer for that?
(Q712,P530,c(Q1048835))
Q712
['Q712', 'P530', {'concept': 'Q1048835'}]
['Fiji', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
1
Q408
(Q712,P530,c(Q1048835))
[ANSWER]
['Q712', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1184114 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Australia
1
['Fiji', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Fiji property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q712
P463
Q484652
USER
How many international organizations were Fiji a member of ?
(Q712,P463,c(Q484652))
action count
action filter_type
action find
entity Q712
relation P463
type Q484652
['Q712', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Q712 property:P463 ?e . ?e rdf:type ontology:Q484652 }
Fiji
action count
action filter_type
action find
entity Fiji
relation member of
type international organization
['Fiji', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Fiji property:member_of ?e . ?e rdf:type ontology:international_organization }
[]
international organization
SYSTEM
5
Q496967 Q294278 Q1065 Q188822 Q1043527
(Q712,P463,c(Q484652))
action count
action filter_type
action find
entity Q712
relation P463
type Q484652
[ANSWER]
['Q712', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Q712 property:P463 ?e . ?e rdf:type ontology:Q484652 }
Alliance of Small Island States African, Caribbean and Pacific Group of States United Nations Asian Development Bank Multilateral Investment Guarantee Agency
5
action count
action filter_type
action find
entity Fiji
relation member of
type international organization
['Fiji', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Fiji property:member_of ?e . ?e rdf:type ontology:international_organization }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q332897
Q484652
USER
And also tell me about Maurice Macmillan?
(Q332897,P463,c(Q484652))
action count
action filter_type
action find
entity Q332897
relation P463
type Q484652
['Q332897', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Q332897 property:P463 ?y . ?y rdf:type ontology:Q484652 }
Maurice Macmillan
action count
action filter_type
action find
entity Maurice Macmillan
relation member of
type international organization
['Maurice Macmillan', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Maurice_Macmillan property:member_of ?y . ?y rdf:type ontology:international_organization }
[]
international organization
SYSTEM
1
(Q332897,P463,c(Q484652))
action count
action filter_type
action find
entity Q332897
relation P463
type Q484652
[ANSWER]
['Q332897', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Q332897 property:P463 ?y . ?y rdf:type ontology:Q484652 }
1
action count
action filter_type
action find
entity Maurice Macmillan
relation member of
type international organization
['Maurice Macmillan', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { resource:Maurice_Macmillan property:member_of ?y . ?y rdf:type ontology:international_organization }
[]