Simple Question (Direct)
Simple Question
Q168517
P39
Q12737077
USER
Which occupation was a position held by Ismail Serageldin ?
(Q168517,P39,c(Q12737077))
action filter_type
action find
entity Q168517
relation P39
type Q12737077
['Q168517', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q168517 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Ismail Serageldin
action filter_type
action find
entity Ismail Serageldin
relation position held
type occupation
['Ismail Serageldin', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Ismail_Serageldin property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q19359412
SYSTEM
Member of the Shura Council
Q19359412
(Q168517,P39,c(Q12737077))
action filter_type
action find
entity Q168517
relation P39
type Q12737077
[ANSWER] was a position held by Ismail Serageldin
['Q168517', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q168517 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Member of the Shura Council
Member of the Shura Council was a position held by Ismail Serageldin
Member of the Shura Council
action filter_type
action find
entity Ismail Serageldin
relation position held
type occupation
['Ismail Serageldin', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Ismail_Serageldin property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19359412
P1001
Q15617994
USER
Which administrative territory comes under the jurisdiction of that occupation ?
(Q19359412,P1001,c(Q15617994))
action filter_type
action find
entity Q19359412
relation P1001
type Q15617994
['Q19359412', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q19359412 property:P1001 ?q . ?q rdf:type ontology:Q15617994 }
Member of the Shura Council
action filter_type
action find
entity Member of the Shura Council
relation applies to jurisdiction
type designation for an administrative territorial entity
['Member of the Shura Council', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Member_of_the_Shura_Council property:applies_to_jurisdiction ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q79
SYSTEM
Egypt
Q79
(Q19359412,P1001,c(Q15617994))
action filter_type
action find
entity Q19359412
relation P1001
type Q15617994
[ANSWER] comes under the jurisdiction of that occupation
['Q19359412', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q19359412 property:P1001 ?q . ?q rdf:type ontology:Q15617994 }
Egypt
Egypt comes under the jurisdiction of that occupation
Egypt
action filter_type
action find
entity Member of the Shura Council
relation applies to jurisdiction
type designation for an administrative territorial entity
['Member of the Shura Council', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Member_of_the_Shura_Council property:applies_to_jurisdiction ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q1048835 Q271669 Q15617994
USER
How many administrative territories have their location as around 1 political territories or landforms ?
(c(Q15617994),P706,c(Q1048835)|c(Q271669))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q271669
value 1
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?q ) WHERE { { ?n property:P706 ?c . ?n rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } UNION { ?n rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q271669 . ?n property:P706 ?c } } GROUP BY ?n } . FILTER ( ?q = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landform
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'landform'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?q ) WHERE { { ?n property:located_on_terrain_feature ?c . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } UNION { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:landform . ?n property:located_on_terrain_feature ?c } } GROUP BY ?n } . FILTER ( ?q = 1 ) }
[]
political territorial entity landform designation for an administrative territorial entity
SYSTEM
54
Q805 Q1070686 Q2712111 Q5101419 Q682072 Q6685870 Q4692591 Q3172 Q922342 Q21042 Q21049 Q21160 Q5382040 Q4692611 Q5517964 Q496389 Q128230 Q27332 Q1093572 Q6350324 Q4789577 Q20789 Q16642582 Q921 Q851 Q845396 Q15213143 Q771971 Q27 Q5420482 Q19906291 Q192129 Q20019215 Q4692647 Q15244035 Q6472577 Q229 Q4769813 Q21008 Q7916724 Q660806 Q28091 Q5275507 Q28013 Q6353095 Q5283827 Q6835962 Q518171 Q2119591 Q8147649 Q8043694 Q3559483 Q3559279 Q3559271
(c(Q15617994),P706,c(Q1048835)|c(Q271669))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q271669
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?q ) WHERE { { ?n property:P706 ?c . ?n rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } UNION { ?n rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q271669 . ?n property:P706 ?c } } GROUP BY ?n } . FILTER ( ?q = 1 ) }
Yemen Leivathos Zagori Chionata Rankwitz Loucha Agioi Pantes Fehmarn Sithonia Nebel Norddorf auf Amrum List auf Sylt Epanochori, Cephalonia Agios Dimitrios, Cephalonia Galaro Lipari Ventotene Kampen Trøllanes Kalamaki, Zakynthos Arginia Wenningstedt-Braderup Hydra Brunei Saudi Arabia Pyramiden Davgata Avlida Ireland Exo Chora Western New Guinea Ustica Natal Agios Nikolaos, Cephalonia Makryotika Lagopodo Cyprus Ano Gerakari Sylt Vasilikades Karlshagen Wittdün auf Amrum Digaleto Hörnum Kalipado Divarata Michata Ellhofen Pylaros Ba District Xenopoulo Elatia Artemisia Arkadioi
54
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landform
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'landform'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?q ) WHERE { { ?n property:located_on_terrain_feature ?c . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } UNION { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:landform . ?n property:located_on_terrain_feature ?c } } GROUP BY ?n } . FILTER ( ?q = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q183
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with approximately the same number of administrative territories as Germany ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?y ) WHERE { ?a property:P530 ?n . ?a rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q183 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?y = ?i ) }
Germany
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?y ) WHERE { ?a property:diplomatic_relation ?n . ?a rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Germany property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?y = ?i ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q1048835
[ANSWERS] have ambassadorial relations with approximately the same number of administrative territories as Germany
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?y ) WHERE { ?a property:P530 ?n . ?a rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q183 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?y = ?i ) }
Germany Australia
Germany and Australia have ambassadorial relations with approximately the same number of administrative territories as Germany
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?y ) WHERE { ?a property:diplomatic_relation ?n . ?a rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Germany property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?y = ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q691
P530
Q15617994 Q1048835
USER
And how about Papua New Guinea?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?r ) WHERE { ?b property:P530 ?w . ?b rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Q691 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?r = ?i ) }
Papua New Guinea
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?r ) WHERE { ?b property:diplomatic_relation ?w . ?b rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?r = ?i ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?r ) WHERE { ?b property:P530 ?w . ?b rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Q691 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?r = ?i ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?r ) WHERE { ?b property:diplomatic_relation ?w . ?b rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?r = ?i ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q35 Q16 Q40
P47
Q1048835
USER
Which political territories are bordered by those ones ?
(Q35,P47,c(Q1048835)) (Q16,P47,c(Q1048835)) (Q40,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
['Q35', 'P47', {'concept': 'Q1048835'}] ['Q16', 'P47', {'concept': 'Q1048835'}] ['Q40', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { ?n property:P47 ?r . VALUES ( ?n ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . ?r rdf:type ontology:Q1048835 }
Denmark Canada Austria
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Denmark', 'shares border with', {'concept': 'political territorial entity'}] ['Canada', 'shares border with', {'concept': 'political territorial entity'}] ['Austria', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { ?n property:shares_border_with ?r . VALUES ( ?n ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q183 Q34617
SYSTEM
Saint Pierre and Miquelon for 3rd, Germany for 1st, 2nd
Q183 Q4969463 Q38610 Q34617 Q183
(Q35,P47,c(Q1048835)) (Q16,P47,c(Q1048835)) (Q40,P47,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
[ANSWERS]
['Q35', 'P47', {'concept': 'Q1048835'}] ['Q16', 'P47', {'concept': 'Q1048835'}] ['Q40', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { ?n property:P47 ?r . VALUES ( ?n ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . ?r rdf:type ontology:Q1048835 }
Germany British Arctic Territories Dominion of Newfoundland Saint Pierre and Miquelon Germany
Germany, Germany and Saint Pierre and Miquelon are bordered by those ones
Germany Germany Saint Pierre and Miquelon
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
['Denmark', 'shares border with', {'concept': 'political territorial entity'}] ['Canada', 'shares border with', {'concept': 'political territorial entity'}] ['Austria', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { ?n property:shares_border_with ?r . VALUES ( ?n ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . ?r rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q34617
P610
Q14524493
USER
Which terrain is the highest point of that political territory ?
(Q34617,P610,c(Q14524493))
action filter_type
action find
entity Q34617
relation P610
type Q14524493
['Q34617', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?x WHERE { resource:Q34617 property:P610 ?x . ?x rdf:type ontology:Q14524493 }
Saint Pierre and Miquelon
action filter_type
action find
entity Saint Pierre and Miquelon
relation highest point
type terrain
['Saint Pierre and Miquelon', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?x WHERE { resource:Saint_Pierre_and_Miquelon property:highest_point ?x . ?x rdf:type ontology:terrain }
[]
terrain
Clarification for simple ques.
Q183
SYSTEM
Did you mean Germany ?
Q183 Q183 Q34617
(Q183,P610,c(Q14524493)) (Q183,P610,c(Q14524493)) (Q34617,P610,c(Q14524493))
[ANSWER]
['Q183', 'P610', {'concept': 'Q14524493'}] ['Q183', 'P610', {'concept': 'Q14524493'}] ['Q34617', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?x WHERE { resource:Q34617 property:P610 ?x . ?x rdf:type ontology:Q14524493 }
Germany Germany Saint Pierre and Miquelon
Did you mean Germany ?
Germany
['Germany', 'highest point', {'concept': 'terrain'}] ['Germany', 'highest point', {'concept': 'terrain'}] ['Saint Pierre and Miquelon', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?x WHERE { resource:Saint_Pierre_and_Miquelon property:highest_point ?x . ?x rdf:type ontology:terrain }
[]
Simple Question (Coreferenced)
USER
No, I meant Saint Pierre and Miquelon. Could you tell me the answer for that?
(Q34617,P610,c(Q14524493))
Q34617
['Q34617', 'P610', {'concept': 'Q14524493'}]
['Saint Pierre and Miquelon', 'highest point', {'concept': 'terrain'}]
[]
Q3051597
SYSTEM
Morne de la Grande Montagne
Q3051597
(Q34617,P610,c(Q14524493))
action filter_type
action find
entity Q34617
relation P610
type Q14524493
[ANSWER] is the highest point of that political territory
['Q34617', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?x WHERE { resource:Q34617 property:P610 ?x . ?x rdf:type ontology:Q14524493 }
Morne de la Grande Montagne
Morne de la Grande Montagne is the highest point of that political territory
Morne de la Grande Montagne
action filter_type
action find
entity Saint Pierre and Miquelon
relation highest point
type terrain
['Saint Pierre and Miquelon', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?x WHERE { resource:Saint_Pierre_and_Miquelon property:highest_point ?x . ?x rdf:type ontology:terrain }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1615372 Q34617
P17
Q15617994
USER
Which administrative territories are Saint Pierre and Miquelon or Peranzanes located in ?
OR((Q34617,P17,c(Q15617994)), (Q1615372,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q34617
relation P17
action find
entity Q1615372
relation P17
type Q15617994
{'OR': [['Q34617', 'P17', {'concept': 'Q15617994'}], ['Q1615372', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q34617 property:P17 ?q } UNION { resource:Q1615372 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Peranzanes Saint Pierre and Miquelon
action filter_type
action union
action find
entity Saint Pierre and Miquelon
relation country
action find
entity Peranzanes
relation country
type designation for an administrative territorial entity
{'OR': [['Saint Pierre and Miquelon', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Peranzanes', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Saint_Pierre_and_Miquelon property:country ?q } UNION { resource:Peranzanes property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q29
SYSTEM
France, Spain
Q142 Q29
OR((Q34617,P17,c(Q15617994)), (Q1615372,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q34617
relation P17
action find
entity Q1615372
relation P17
type Q15617994
Saint Pierre and Miquelon or Peranzanes are located in [ANSWERS]
{'OR': [['Q34617', 'P17', {'concept': 'Q15617994'}], ['Q1615372', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q34617 property:P17 ?q } UNION { resource:Q1615372 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
France Spain
Saint Pierre and Miquelon or Peranzanes are located in France and Spain
France Spain
action filter_type
action union
action find
entity Saint Pierre and Miquelon
relation country
action find
entity Peranzanes
relation country
type designation for an administrative territorial entity
{'OR': [['Saint Pierre and Miquelon', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Peranzanes', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Saint_Pierre_and_Miquelon property:country ?q } UNION { resource:Peranzanes property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q142 Q29
P36
Q56061
USER
Which administrative territories are associated to those administrative territories as the capital ?
(Q142,P36,c(Q56061)) (Q29,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
['Q142', 'P36', {'concept': 'Q56061'}] ['Q29', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?s property:P36 ?h . ?h rdf:type ontology:Q56061 . VALUES ( ?s ) { ( resource:Q142 ) ( resource:Q29 ) } }
France Spain
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['France', 'capital', {'concept': 'administrative territorial entity'}] ['Spain', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?s property:capital ?h . ?h rdf:type ontology:administrative_territorial_entity . VALUES ( ?s ) { ( resource:France ) ( resource:Spain ) } }
[]
administrative territorial entity
Q90 Q2807
SYSTEM
Paris, Madrid
Q90 Q2807
(Q142,P36,c(Q56061)) (Q29,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
[ANSWERS] are associated to those administrative territories as the capital
['Q142', 'P36', {'concept': 'Q56061'}] ['Q29', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?s property:P36 ?h . ?h rdf:type ontology:Q56061 . VALUES ( ?s ) { ( resource:Q142 ) ( resource:Q29 ) } }
Paris Madrid
Paris and Madrid are associated to those administrative territories as the capital
Paris Madrid
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['France', 'capital', {'concept': 'administrative territorial entity'}] ['Spain', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?s property:capital ?h . ?h rdf:type ontology:administrative_territorial_entity . VALUES ( ?s ) { ( resource:France ) ( resource:Spain ) } }
[]