Simple Question (Direct)
Simple Question
Q1810618
P27
Q1048835
USER
Which political territory is the country of citizenship of Arthur McCabe ?
(Q1810618,P27,c(Q1048835))
action filter_type
action find
entity Q1810618
relation P27
type Q1048835
['Q1810618', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q1810618 property:P27 ?h . ?h rdf:type ontology:Q1048835 }
Arthur McCabe
action filter_type
action find
entity Arthur McCabe
relation country of citizenship
type political territorial entity
['Arthur McCabe', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Arthur_McCabe property:country_of_citizenship ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q1810618,P27,c(Q1048835))
action filter_type
action find
entity Q1810618
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Arthur McCabe
['Q1810618', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q1810618 property:P27 ?h . ?h rdf:type ontology:Q1048835 }
Australia
Australia is the country of citizenship of Arthur McCabe
Australia
action filter_type
action find
entity Arthur McCabe
relation country of citizenship
type political territorial entity
['Arthur McCabe', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Arthur_McCabe property:country_of_citizenship ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1810618
P21
Q290
USER
Which sex does that person have ?
(Q408,P21,c(Q290))
action filter_type
action find
entity Q1810618
relation P21
type Q290
['Q408', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q1810618 property:P21 ?q }
Arthur McCabe
action filter_type
action find
entity Arthur McCabe
relation gender
type sex
['Australia', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Arthur_McCabe property:gender ?q }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q408,P21,c(Q290))
action filter_type
action find
entity Q1810618
relation P21
type Q290
That person has a [ANSWER]
['Q408', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q1810618 property:P21 ?q }
male
That person has a male
male
action filter_type
action find
entity Arthur McCabe
relation gender
type sex
['Australia', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Arthur_McCabe property:gender ?q }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q271669 Q56061 Q1048835
USER
Which political territories are located in atmost 1 landforms or administrative territories ?
(c(Q1048835),P706,c(Q271669)|c(Q56061))
action atmost
action union
action find_tuple_counts
relation P706
type Q1048835
type Q271669
action find_tuple_counts
relation P706
type Q1048835
type Q56061
value 1
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?d ) WHERE { { ?e rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q271669 . ?e property:P706 ?k } UNION { ?e property:P706 ?k . ?e rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q56061 } } GROUP BY ?e } . FILTER ( ?d <= 1 ) }
action atmost
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landform
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type administrative territorial entity
value 1
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?d ) WHERE { { ?e rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:landform . ?e property:located_on_terrain_feature ?k } UNION { ?e property:located_on_terrain_feature ?k . ?e rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:administrative_territorial_entity } } GROUP BY ?e } . FILTER ( ?d <= 1 ) }
[]
landform administrative territorial entity political territorial entity
Q691 Q769 Q766
SYSTEM
Papua New Guinea, Grenada, Jamaica
Q927498 Q6661154 Q1747689 Q983465 Q943922 Q983461 Q753702 Q950889 Q385923 Q49567 Q52626 Q13353 Q6139 Q847324 Q785 Q847321 Q850989 Q983467 Q743716 Q734805 Q904566 Q555140 Q983463 Q13737 Q493017 Q42314 Q950940 Q669078 Q851224 Q898856 Q950951 Q843868 Q945653 Q37362 Q715970 Q595424 Q168856 Q5785 Q3405693 Q7198529 Q832991 Q13751 Q975679 Q601112 Q984496 Q743741 Q988714 Q25228 Q596885 Q941533 Q783498 Q692920 Q850939 Q988702 Q2451327 Q925773 Q851011 Q1823 Q13844 Q611123 Q233337 Q202023 Q987394 Q691 Q899884 Q837121 Q950901 Q837125 Q847317 Q983633 Q491786 Q983631 Q3724 Q983635 Q8583 Q652988 Q832967 Q185409 Q769 Q170213 Q766 Q9676 Q984485 Q168159 Q983625 Q983628 Q8593 Q656449 Q988688 Q18221 Q778 Q213361 Q984493 Q984491 Q984499 Q3396832 Q9337 Q5700 Q988696 Q943948 Q697126 Q25305 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q271669)|c(Q56061))
action atmost
action union
action find_tuple_counts
relation P706
type Q1048835
type Q271669
action find_tuple_counts
relation P706
type Q1048835
type Q56061
value 1
[ANSWERS] are located in atmost 1 landforms or administrative territories
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?d ) WHERE { { ?e rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q271669 . ?e property:P706 ?k } UNION { ?e property:P706 ?k . ?e rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q56061 } } GROUP BY ?e } . FILTER ( ?d <= 1 ) }
Llucmajor Llanddeusant, Carmarthenshire Ancient Rome Santa Eulària des Riu Sineu Ferreries East New Britain Consell Alcúdia Manacor Formentera Montserrat Havelland Alaior Jersey Esporles Campanet Montuïri Campos Sant Antoni de Portmany Brecqhou Capileira Sant Llorenç des Cardassar Basilan Andratx Channel Islands Marratxí Maria de la Salut Costitx Jethou Escorca Wrexham County Borough Es Mercadal Akrotiri and Dhekelia Artà Muro, Majorca Chernivtsi Oblast Cayman Islands Sark Pistyll Sóller Biliran Vilafranca de Bonany Pollença Selva Felanitx Lloret de Vistalegre Anguilla Blaenau Gwent County Borough Es Castell Ses Salines Sant Joan Alaró Estellencs Sé Porreres Algaida Aceh Leyte Petra, Majorca Deià Herm Sencelles Papua New Guinea Ciutadella de Menorca Binissalem Fornalutx Bunyola Lloseta Santanyí Calvià Santa Eugènia West Java Province Sant Josep de sa Talaia Vulkaneifel Búger Valldemossa Llubí Grenada Zakarpattia Oblast Jamaica Isle of Man Es Migjorn Gran Anglesey Puigpunyent Sant Joan de Labritja Mayen-Koblenz Ariany, Majorca Inca Turks and Caicos Islands The Bahamas Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Flemish Region Lapland Mancor de la Vall Santa Maria del Camí Bridgend County Borough British Virgin Islands Banyalbufar Son Servera Capdepera
Papua New Guinea, Grenada and Jamaica are located in atmost 1 landforms or administrative territories
Papua New Guinea Grenada Jamaica
action atmost
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type landform
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type administrative territorial entity
value 1
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?d ) WHERE { { ?e rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:landform . ?e property:located_on_terrain_feature ?k } UNION { ?e property:located_on_terrain_feature ?k . ?e rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:administrative_territorial_entity } } GROUP BY ?e } . FILTER ( ?d <= 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15634424
P1001
Q4677783
USER
Do Canadian Speaker (Appointment of Deputy) Act, 1895 have jurisdiction over those political territories ?
(Q15634424,P1001,Q691) (Q15634424,P1001,Q769) (Q15634424,P1001,Q766)
action is_in
entity prev_answer
action find
entity Q15634424
relation P1001
['Q15634424', 'P1001', 'Q691'] ['Q15634424', 'P1001', 'Q769'] ['Q15634424', 'P1001', 'Q766']
ASK WHERE { VALUES ( ?s ) { ( resource:Q927498 ) ( resource:Q6661154 ) ( resource:Q1747689 ) } . resource:Q15634424 property:P1001 ?s }
Canadian Speaker (Appointment of Deputy) Act, 1895
action is_in
entity prev_answer
action find
entity Canadian Speaker (Appointment of Deputy) Act, 1895
relation applies to jurisdiction
['Canadian Speaker (Appointment of Deputy) Act, 1895', 'applies to jurisdiction', 'Papua New Guinea'] ['Canadian Speaker (Appointment of Deputy) Act, 1895', 'applies to jurisdiction', 'Grenada'] ['Canadian Speaker (Appointment of Deputy) Act, 1895', 'applies to jurisdiction', 'Jamaica']
ASK WHERE { VALUES ( ?s ) { ( resource:Llucmajor ) ( resource:Llanddeusant,_Carmarthenshire ) ( resource:Ancient_Rome ) } . resource:Canadian_Speaker_(Appointment_of_Deputy)_Act,_1895 property:applies_to_jurisdiction ?s }
[]
Act of Parliament of the United Kingdom
SYSTEM
NO
(Q15634424,P1001,Q691) (Q15634424,P1001,Q769) (Q15634424,P1001,Q766)
action is_in
entity prev_answer
action find
entity Q15634424
relation P1001
[ANSWER]
['Q15634424', 'P1001', 'Q691'] ['Q15634424', 'P1001', 'Q769'] ['Q15634424', 'P1001', 'Q766']
ASK WHERE { VALUES ( ?s ) { ( resource:Q927498 ) ( resource:Q6661154 ) ( resource:Q1747689 ) } . resource:Q15634424 property:P1001 ?s }
No
action is_in
entity prev_answer
action find
entity Canadian Speaker (Appointment of Deputy) Act, 1895
relation applies to jurisdiction
['Canadian Speaker (Appointment of Deputy) Act, 1895', 'applies to jurisdiction', 'Papua New Guinea'] ['Canadian Speaker (Appointment of Deputy) Act, 1895', 'applies to jurisdiction', 'Grenada'] ['Canadian Speaker (Appointment of Deputy) Act, 1895', 'applies to jurisdiction', 'Jamaica']
ASK WHERE { VALUES ( ?s ) { ( resource:Llucmajor ) ( resource:Llanddeusant,_Carmarthenshire ) ( resource:Ancient_Rome ) } . resource:Canadian_Speaker_(Appointment_of_Deputy)_Act,_1895 property:applies_to_jurisdiction ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q691
P163
Q14660
USER
What is associated with Papua New Guinea ?
(Q691,P163,c(Q14660))
action filter_type
action find
entity Q691
relation P163
type Q14660
['Q691', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?v WHERE { resource:Q691 property:P163 ?v . ?v rdf:type ontology:Q14660 }
Papua New Guinea
action filter_type
action find
entity Papua New Guinea
relation flag
type flag
['Papua New Guinea', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?v WHERE { resource:Papua_New_Guinea property:flag ?v . ?v rdf:type ontology:flag }
[]
flag
Q185271
SYSTEM
Flag of Papua New Guinea
Q185271
(Q691,P163,c(Q14660))
action filter_type
action find
entity Q691
relation P163
type Q14660
Guinea [ANSWER] is associated with Papua New Guinea
['Q691', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?v WHERE { resource:Q691 property:P163 ?v . ?v rdf:type ontology:Q14660 }
Flag of Papua New Guinea
Guinea Flag of Papua New Guinea is associated with Papua New Guinea
Flag of Papua New Guinea
action filter_type
action find
entity Papua New Guinea
relation flag
type flag
['Papua New Guinea', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?v WHERE { resource:Papua_New_Guinea property:flag ?v . ?v rdf:type ontology:flag }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q185271 Q4258254
P163
Q1048835
USER
Is Sakhnivka associated with that flag ?
(Q4258254,P163,Q185271)
action is_in
entity Q4258254
action find
entity Q185271
relation P163
['Q4258254', 'P163', 'Q185271']
ASK WHERE { resource:Q185271 property:P163 resource:Q4258254 }
Flag of Papua New Guinea Sakhnivka
action is_in
entity Sakhnivka
action find
entity Flag of Papua New Guinea
relation flag
['Sakhnivka', 'flag', 'Flag of Papua New Guinea']
ASK WHERE { resource:Flag_of_Papua_New_Guinea property:flag resource:Sakhnivka }
[]
political territorial entity
SYSTEM
NO
(Q4258254,P163,Q185271)
action is_in
entity Q4258254
action find
entity Q185271
relation P163
[ANSWER]
['Q4258254', 'P163', 'Q185271']
ASK WHERE { resource:Q185271 property:P163 resource:Q4258254 }
No
action is_in
entity Sakhnivka
action find
entity Flag of Papua New Guinea
relation flag
['Sakhnivka', 'flag', 'Flag of Papua New Guinea']
ASK WHERE { resource:Flag_of_Papua_New_Guinea property:flag resource:Sakhnivka }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q407199
P495
Q1048835 Q838948 Q7725634
USER
How many political territories are the origins of approximately the same number of works of art and literary works as Palestinian territories ?
(c(Q838948)|c(Q7725634),P495,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q407199
relation P495
type Q838948
type Q7725634
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?g ) WHERE { VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?f rdf:type ?s } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:P495 resource:Q407199 . { { ?t rdf:type ontology:Q838948 } UNION { ?t rdf:type ontology:Q7725634 } } } } . FILTER ( ?g = ?k ) }
Palestinian territories
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Palestinian territories
relation country of origin
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?g ) WHERE { VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?f rdf:type ?s } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:country_of_origin resource:Palestinian_territories . { { ?t rdf:type ontology:work_of_art } UNION { ?t rdf:type ontology:literary_work } } } } . FILTER ( ?g = ?k ) }
[]
political territorial entity work of art literary work
SYSTEM
23
Q1000 Q1747689 Q838261 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q838948)|c(Q7725634),P495,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q407199
relation P495
type Q838948
type Q7725634
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?g ) WHERE { VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?f rdf:type ?s } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:P495 resource:Q407199 . { { ?t rdf:type ontology:Q838948 } UNION { ?t rdf:type ontology:Q7725634 } } } } . FILTER ( ?g = ?k ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
23
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Palestinian territories
relation country of origin
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?g ) WHERE { VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?f rdf:type ?s } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { ?t property:country_of_origin resource:Palestinian_territories . { { ?t rdf:type ontology:work_of_art } UNION { ?t rdf:type ontology:literary_work } } } } . FILTER ( ?g = ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q13353
P495
Q1048835 Q838948 Q7725634
USER
And also tell me about Montserrat?
(c(Q838948)|c(Q7725634),P495,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q13353
relation P495
type Q838948
type Q7725634
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?a WHERE { { ?q property:P495 ?a . ?a rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P495 ?a . ?a rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q7725634 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P495 resource:Q13353 . { { ?r rdf:type ontology:Q838948 } UNION { ?r rdf:type ontology:Q7725634 } } } } . FILTER ( ?w = ?x ) }
Montserrat
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Montserrat
relation country of origin
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?a WHERE { { ?q property:country_of_origin ?a . ?a rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:work_of_art } UNION { ?q property:country_of_origin ?a . ?a rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:literary_work } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:country_of_origin resource:Montserrat . { { ?r rdf:type ontology:work_of_art } UNION { ?r rdf:type ontology:literary_work } } } } . FILTER ( ?w = ?x ) }
[]
political territorial entity work of art literary work
SYSTEM
23
Q1000 Q1747689 Q838261 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q838948)|c(Q7725634),P495,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q13353
relation P495
type Q838948
type Q7725634
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?a WHERE { { ?q property:P495 ?a . ?a rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P495 ?a . ?a rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q7725634 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:P495 resource:Q13353 . { { ?r rdf:type ontology:Q838948 } UNION { ?r rdf:type ontology:Q7725634 } } } } . FILTER ( ?w = ?x ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
23
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Montserrat
relation country of origin
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?a WHERE { { ?q property:country_of_origin ?a . ?a rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:work_of_art } UNION { ?q property:country_of_origin ?a . ?a rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:literary_work } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { ?r property:country_of_origin resource:Montserrat . { { ?r rdf:type ontology:work_of_art } UNION { ?r rdf:type ontology:literary_work } } } } . FILTER ( ?w = ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q170672
P1376
Q1048835 Q515 Q20667921
USER
How many political territories have greater number of cities and french administrative divisions as their capital than Dnipropetrovsk Oblast ?
(c(Q515)|c(Q20667921),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action count
action filter_multi_types
action find_reverse
entity Q170672
relation P1376
type Q515
type Q20667921
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { { ?j rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q515 . ?r property:P1376 ?j } UNION { ?r property:P1376 ?j . ?j rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q20667921 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } } . ?x property:P1376 resource:Q170672 } } . FILTER ( ?n > ?c ) }
Dnipropetrovsk Oblast
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Dnipropetrovsk Oblast
relation capital of
type city
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { { ?j rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:city . ?r property:capital_of ?j } UNION { ?r property:capital_of ?j . ?j rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } } . ?x property:capital_of resource:Dnipropetrovsk_Oblast } } . FILTER ( ?n > ?c ) }
[]
political territorial entity city type of french administrative division
SYSTEM
121
Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q2175 Q2271 Q48060 Q13900 Q170390 Q1122980 Q8170 Q168651 Q3741 Q2223 Q22880 Q13786 Q13785 Q13869 Q13868 Q13865 Q13863 Q13862 Q10547 Q2485101 Q1890 Q664 Q12741 Q6339 Q5082 Q5065 Q5067 Q5061 Q5062 Q5068 Q13737 Q7932 Q2140 Q13827 Q13826 Q13825 Q34617 Q13829 Q953068 Q170036 Q9648 Q3125978 Q13857 Q757 Q13772 Q642314 Q6301 Q7890 Q3916 Q13794 Q13791 Q13792 Q13813 Q48079 Q5093 Q5095 Q671742 Q5075 Q193619 Q13744 Q48094 Q192697 Q2772 Q13874 Q7928 Q188373 Q48046 Q2101298 Q1823 Q13844 Q13847 Q13843 Q2594990 Q1232887 Q8195 Q2110 Q48072 Q3586 Q13892 Q13891 Q13899 Q3906 Q778266 Q1866 Q13809 Q13860 Q13806 Q240441 Q24174 Q10440 Q49655 Q190930 Q13753 Q13752 Q13755 Q13759 Q8167 Q48089 Q7916 Q7912 Q3540 Q10526 Q13870 Q13872 Q3724 Q13876 Q48057 Q6328 Q10557 Q10555 Q2902 Q10559
(c(Q515)|c(Q20667921),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action count
action filter_multi_types
action find_reverse
entity Q170672
relation P1376
type Q515
type Q20667921
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { { ?j rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q515 . ?r property:P1376 ?j } UNION { ?r property:P1376 ?j . ?j rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q20667921 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } } . ?x property:P1376 resource:Q170672 } } . FILTER ( ?n > ?c ) }
Sorsogon South Cotabato Southern Leyte Surigao del Norte Jersey Albay Jambi Province Kalimantan Tengah Kalimantan Timur Riau Province South Sumatra Gera District Zamboanga del Sur County of Oldenburg Comtat Venaissin Tübingen Landgraviate of Hesse-Kassel Special Region of Yogyakarta Kepulauan Riau Electoral Palatinate Cebu Cavite Palawan Oriental Mindoro Nueva Ecija Negros Oriental Negros Occidental Lower Franconia County of Chiny Bengkulu Province New Zealand Ilocos Sur Erzgebirgskreis West Sulawesi Central Sulawesi Province Gorontalo Province East Nusa Tenggara Province West Nusa Tenggara North Sulawesi Province Basilan Darmstadt Government Region North Sumatra Province Kalinga Isabela Iloilo Saint Pierre and Miquelon La Union South-West Africa Kiev Oblast Falkland Islands Bali Misamis Occidental Saint Vincent and the Grenadines Capiz County of Burgundy Nordsachsen Kassel Kalimantan Barat Davao del Sur Cotabato Davao del Norte Ilocos Norte Leipzig District Maluku Province Papua General Pueyrredón South East Sulawesi Province Union of South Africa Batangas Potsdam District South Moravian Region West Sumatra Rizal Kassel  Government Region South Bohemia Region Cottbus Tandil Aceh Leyte Masbate Lanao del Sur Dominion of New Zealand County of Savoy Breisgau-Hochschwarzwald Lampung Province Karl-Marx-Stadt District East Java Tarlac Surigao del Sur Zamboanga del Norte Kalimantan Selatan County of Artois Bangka–Belitung Islands Eastern Samar Misamis Oriental Davao Oriental General Alvarado Partido Dresden Government Region Coburg Schellenberg Vysočina Region Bukidnon Bohol Bulacan Cagayan Freiburg Government Region Neubrandenburg District Darmstadt-Dieburg Offenbach Banten Province Rosenheim Pampanga Quezon West Java Province Samar Frankfurt (Oder) Mittelsachsen Swabia Upper Palatinate Mecklenburgische Seenplatte District Lower Bavaria
121
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Dnipropetrovsk Oblast
relation capital of
type city
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?n ) WHERE { { ?j rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:city . ?r property:capital_of ?j } UNION { ?r property:capital_of ?j . ?j rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } } . ?x property:capital_of resource:Dnipropetrovsk_Oblast } } . FILTER ( ?n > ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1038802
P1376
Q1048835 Q515 Q20667921
USER
And what about Junín Partido?
(c(Q515)|c(Q20667921),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action count
action filter_multi_types
action find_reverse
entity Q1038802
relation P1376
type Q515
type Q20667921
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?f WHERE { VALUES ( ?i ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?z rdf:type ?i } GROUP BY ?f } . FILTER ( ?q > ?l ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P1376 resource:Q1038802 . { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } } } } }
Junín Partido
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Junín Partido
relation capital of
type city
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?f WHERE { VALUES ( ?i ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?z rdf:type ?i } GROUP BY ?f } . FILTER ( ?q > ?l ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:capital_of resource:Junín_Partido . { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } } } } }
[]
political territorial entity city type of french administrative division
SYSTEM
121
Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q2175 Q2271 Q48060 Q13900 Q170390 Q1122980 Q8170 Q168651 Q3741 Q2223 Q22880 Q13786 Q13785 Q13869 Q13868 Q13865 Q13863 Q13862 Q10547 Q2485101 Q1890 Q664 Q12741 Q6339 Q5082 Q5065 Q5067 Q5061 Q5062 Q5068 Q13737 Q7932 Q2140 Q13827 Q13826 Q13825 Q34617 Q13829 Q953068 Q170036 Q9648 Q3125978 Q13857 Q757 Q13772 Q642314 Q6301 Q7890 Q3916 Q13794 Q13791 Q13792 Q13813 Q48079 Q5093 Q5095 Q671742 Q5075 Q193619 Q13744 Q48094 Q192697 Q2772 Q13874 Q7928 Q188373 Q48046 Q2101298 Q1823 Q13844 Q13847 Q13843 Q2594990 Q1232887 Q8195 Q2110 Q48072 Q3586 Q13892 Q13891 Q13899 Q3906 Q778266 Q1866 Q13809 Q13860 Q13806 Q240441 Q24174 Q10440 Q49655 Q190930 Q13753 Q13752 Q13755 Q13759 Q8167 Q48089 Q7916 Q7912 Q3540 Q10526 Q13870 Q13872 Q3724 Q13876 Q48057 Q6328 Q10557 Q10555 Q2902 Q10559
(c(Q515)|c(Q20667921),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
action count
action filter_multi_types
action find_reverse
entity Q1038802
relation P1376
type Q515
type Q20667921
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?f WHERE { VALUES ( ?i ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?z rdf:type ?i } GROUP BY ?f } . FILTER ( ?q > ?l ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P1376 resource:Q1038802 . { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } } } } }
Sorsogon South Cotabato Southern Leyte Surigao del Norte Jersey Albay Jambi Province Kalimantan Tengah Kalimantan Timur Riau Province South Sumatra Gera District Zamboanga del Sur County of Oldenburg Comtat Venaissin Tübingen Landgraviate of Hesse-Kassel Special Region of Yogyakarta Kepulauan Riau Electoral Palatinate Cebu Cavite Palawan Oriental Mindoro Nueva Ecija Negros Oriental Negros Occidental Lower Franconia County of Chiny Bengkulu Province New Zealand Ilocos Sur Erzgebirgskreis West Sulawesi Central Sulawesi Province Gorontalo Province East Nusa Tenggara Province West Nusa Tenggara North Sulawesi Province Basilan Darmstadt Government Region North Sumatra Province Kalinga Isabela Iloilo Saint Pierre and Miquelon La Union South-West Africa Kiev Oblast Falkland Islands Bali Misamis Occidental Saint Vincent and the Grenadines Capiz County of Burgundy Nordsachsen Kassel Kalimantan Barat Davao del Sur Cotabato Davao del Norte Ilocos Norte Leipzig District Maluku Province Papua General Pueyrredón South East Sulawesi Province Union of South Africa Batangas Potsdam District South Moravian Region West Sumatra Rizal Kassel  Government Region South Bohemia Region Cottbus Tandil Aceh Leyte Masbate Lanao del Sur Dominion of New Zealand County of Savoy Breisgau-Hochschwarzwald Lampung Province Karl-Marx-Stadt District East Java Tarlac Surigao del Sur Zamboanga del Norte Kalimantan Selatan County of Artois Bangka–Belitung Islands Eastern Samar Misamis Oriental Davao Oriental General Alvarado Partido Dresden Government Region Coburg Schellenberg Vysočina Region Bukidnon Bohol Bulacan Cagayan Freiburg Government Region Neubrandenburg District Darmstadt-Dieburg Offenbach Banten Province Rosenheim Pampanga Quezon West Java Province Samar Frankfurt (Oder) Mittelsachsen Swabia Upper Palatinate Mecklenburgische Seenplatte District Lower Bavaria
121
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Junín Partido
relation capital of
type city
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?f WHERE { VALUES ( ?i ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?z rdf:type ?i } GROUP BY ?f } . FILTER ( ?q > ?l ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:capital_of resource:Junín_Partido . { ?u rdf:type ?s . VALUES ( ?s ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q22676587 Q4164871 Q1048835
USER
Which political territories have atmost 1 monarchic systems and positions as the type of government ?
(c(Q1048835),P122,c(Q22676587)|c(Q4164871))
action atmost
action union
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
value 1
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) ?p WHERE { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:Q22676587 ) ( ontology:Q4164871 ) } } GROUP BY ?p } . FILTER ( ?e <= 1 ) }
action atmost
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'position'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) ?p WHERE { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:monarchic_system ) ( ontology:position ) } } GROUP BY ?p } . FILTER ( ?e <= 1 ) }
[]
monarchic system position political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q183 Q601252 Q193619 Q1059046 Q763 Q664 Q1925048 Q785 Q178084 Q16 Q35 Q38610 Q79965 Q223793 Q2594990 Q408 Q757 Q468378 Q40 Q1250464 Q151938 Q31747 Q129286
(c(Q1048835),P122,c(Q22676587)|c(Q4164871))
action atmost
action union
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
value 1
[ANSWERS] have atmost 1 monarchic systems and positions as the type of government
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) ?p WHERE { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:Q22676587 ) ( ontology:Q4164871 ) } } GROUP BY ?p } . FILTER ( ?e <= 1 ) }
Germany Banovina of Croatia Union of South Africa Merkit people Saint Kitts and Nevis New Zealand San Pedro Partido Jersey Ilkhanate Canada Denmark Dominion of Newfoundland Golden Horde Kingdom of Etruria Dominion of New Zealand Australia Saint Vincent and the Grenadines County of Hoya Austria realm Neutral Moresnet Irish Free State British Raj
Germany, Australia and Denmark have atmost 1 monarchic systems and positions as the type of government
Germany Australia Denmark
action atmost
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'position'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) ?p WHERE { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:monarchic_system ) ( ontology:position ) } } GROUP BY ?p } . FILTER ( ?e <= 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1917863
P530
Q1048835
USER
Do Carrícola have tactful political relations with those ones ?
(Q1917863,P530,Q183) (Q1917863,P530,Q408) (Q1917863,P530,Q35)
action is_in
entity prev_answer
action find
entity Q1917863
relation P530
['Q1917863', 'P530', 'Q183'] ['Q1917863', 'P530', 'Q408'] ['Q1917863', 'P530', 'Q35']
ASK WHERE { resource:Q1917863 property:P530 ?r . VALUES ( ?r ) { ( resource:Q183 ) ( resource:Q601252 ) ( resource:Q193619 ) } }
Carrícola
action is_in
entity prev_answer
action find
entity Carrícola
relation diplomatic relation
['Carrícola', 'diplomatic relation', 'Germany'] ['Carrícola', 'diplomatic relation', 'Australia'] ['Carrícola', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Carrícola property:diplomatic_relation ?r . VALUES ( ?r ) { ( resource:Germany ) ( resource:Banovina_of_Croatia ) ( resource:Union_of_South_Africa ) } }
[]
political territorial entity
SYSTEM
NO
(Q1917863,P530,Q183) (Q1917863,P530,Q408) (Q1917863,P530,Q35)
action is_in
entity prev_answer
action find
entity Q1917863
relation P530
[ANSWER]
['Q1917863', 'P530', 'Q183'] ['Q1917863', 'P530', 'Q408'] ['Q1917863', 'P530', 'Q35']
ASK WHERE { resource:Q1917863 property:P530 ?r . VALUES ( ?r ) { ( resource:Q183 ) ( resource:Q601252 ) ( resource:Q193619 ) } }
No
action is_in
entity prev_answer
action find
entity Carrícola
relation diplomatic relation
['Carrícola', 'diplomatic relation', 'Germany'] ['Carrícola', 'diplomatic relation', 'Australia'] ['Carrícola', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Carrícola property:diplomatic_relation ?r . VALUES ( ?r ) { ( resource:Germany ) ( resource:Banovina_of_Croatia ) ( resource:Union_of_South_Africa ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P47
Q1048835
USER
Which political territories have an adjacent border with Australia ?
(c(Q1048835),P47,Q408)
action filter_type
action find
entity Q408
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q408']
SELECT DISTINCT ?a WHERE { resource:Q408 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Australia
action filter_type
action find
entity Australia
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Australia']
SELECT DISTINCT ?a WHERE { resource:Australia property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q5095 Q691
SYSTEM
New Zealand, Papua, Papua New Guinea
Q664 Q5095 Q691
(c(Q1048835),P47,Q408)
action filter_type
action find
entity Q408
relation P47
type Q1048835
[ANSWERS] have an adjacent border with Australia
[{'concept': 'Q1048835'}, 'P47', 'Q408']
SELECT DISTINCT ?a WHERE { resource:Q408 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
New Zealand Papua Papua New Guinea
New Zealand, Papua and Papua New Guinea have an adjacent border with Australia
New Zealand Papua Papua New Guinea
action filter_type
action find
entity Australia
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Australia']
SELECT DISTINCT ?a WHERE { resource:Australia property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]