Simple Question (Direct)
Simple Question
Q21402879
P1412
Q34770
USER
Which language can Miguel Ángel Villena read ?
(Q21402879,P1412,c(Q34770))
action filter_type
action find
entity Q21402879
relation P1412
type Q34770
['Q21402879', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q21402879 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Miguel Ángel Villena
action filter_type
action find
entity Miguel Ángel Villena
relation languages spoken, written or signed
type language
['Miguel Ángel Villena', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Miguel_Ángel_Villena property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q21402879,P1412,c(Q34770))
action filter_type
action find
entity Q21402879
relation P1412
type Q34770
Miguel Ángel Villena can read in [ANSWER]
['Q21402879', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q21402879 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Spanish
Miguel Ángel Villena can read in Spanish
Spanish
action filter_type
action find
entity Miguel Ángel Villena
relation languages spoken, written or signed
type language
['Miguel Ángel Villena', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Miguel_Ángel_Villena property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21402879
P19
Q56061
USER
Which administrative territory is the place of birth of Miguel Ángel Villena ?
(Q21402879,P19,c(Q56061))
action filter_type
action find
entity Q21402879
relation P19
type Q56061
['Q21402879', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q21402879 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Miguel Ángel Villena
action filter_type
action find
entity Miguel Ángel Villena
relation place of birth
type administrative territorial entity
['Miguel Ángel Villena', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Miguel_Ángel_Villena property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8818
SYSTEM
Valencia
Q8818
(Q21402879,P19,c(Q56061))
action filter_type
action find
entity Q21402879
relation P19
type Q56061
[ANSWER] is the place of birth of Miguel Ángel Villena
['Q21402879', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q21402879 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Valencia
Valencia is the place of birth of Miguel Ángel Villena
Valencia
action filter_type
action find
entity Miguel Ángel Villena
relation place of birth
type administrative territorial entity
['Miguel Ángel Villena', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Miguel_Ángel_Villena property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21402879
P21
Q290
USER
What is the sex of Miguel Ángel Villena ?
(Q21402879,P21,c(Q290))
action filter_type
action find
entity Q21402879
relation P21
type Q290
['Q21402879', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q21402879 property:P21 ?n }
Miguel Ángel Villena
action filter_type
action find
entity Miguel Ángel Villena
relation gender
type sex
['Miguel Ángel Villena', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Miguel_Ángel_Villena property:gender ?n }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q21402879,P21,c(Q290))
action filter_type
action find
entity Q21402879
relation P21
type Q290
The sex of Miguel Ángel Villena is the [ANSWER]
['Q21402879', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q290 . resource:Q21402879 property:P21 ?n }
male
The sex of Miguel Ángel Villena is the male
male
action filter_type
action find
entity Miguel Ángel Villena
relation gender
type sex
['Miguel Ángel Villena', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sex . resource:Miguel_Ángel_Villena property:gender ?n }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1321
P37
Q56061 Q3895768
USER
How many administrative territories and fictional locations are Spanish the official language of ?
(c(Q56061),P37,Q1321) (c(Q3895768),P37,Q1321)
action count
action union
action filter_type
action find_reverse
entity Q1321
relation P37
type Q56061
action filter_type
action find_reverse
entity Q1321
relation P37
type Q3895768
[{'concept': 'Q56061'}, 'P37', 'Q1321'] [{'concept': 'Q3895768'}, 'P37', 'Q1321']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { ?b property:P37 resource:Q1321 . ?b rdf:type ontology:Q3895768 } UNION { ?b property:P37 resource:Q1321 . ?b rdf:type ontology:Q56061 } }
Spanish
action count
action union
action filter_type
action find_reverse
entity Spanish
relation official language
type administrative territorial entity
action filter_type
action find_reverse
entity Spanish
relation official language
type fictional location
[{'concept': 'administrative territorial entity'}, 'official language', 'Spanish'] [{'concept': 'fictional location'}, 'official language', 'Spanish']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { ?b property:official_language resource:Spanish . ?b rdf:type ontology:fictional_location } UNION { ?b property:official_language resource:Spanish . ?b rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity fictional location
SYSTEM
16 administrative territories and 1 fictional locations
Q2358715 Q14452 Q334577 Q2604700 Q7122288 Q2217474 Q5813 Q458 Q1183 Q2395382 Q2214906 Q11959 Q1026296 Q4264 Q2215147 Q2215401 Q1014671
(c(Q56061),P37,Q1321) (c(Q3895768),P37,Q1321)
action count
action union
action filter_type
action find_reverse
entity Q1321
relation P37
type Q56061
action filter_type
action find_reverse
entity Q1321
relation P37
type Q3895768
[ANSWER]
[{'concept': 'Q56061'}, 'P37', 'Q1321'] [{'concept': 'Q3895768'}, 'P37', 'Q1321']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { ?b property:P37 resource:Q1321 . ?b rdf:type ontology:Q3895768 } UNION { ?b property:P37 resource:Q1321 . ?b rdf:type ontology:Q56061 } }
Palombia Easter Island Quetzaltenango San Rafael del Norte Pacific Alliance Santa María de Pantasma Canary Islands European Union Puerto Rico La Concordia El Cuá Alicante Jinotega Mercosur San José de Bocay San Sebastián de Yalí Wiwilí de Jinotega
16 administrative territories and 1 fictional locations
action count
action union
action filter_type
action find_reverse
entity Spanish
relation official language
type administrative territorial entity
action filter_type
action find_reverse
entity Spanish
relation official language
type fictional location
[{'concept': 'administrative territorial entity'}, 'official language', 'Spanish'] [{'concept': 'fictional location'}, 'official language', 'Spanish']
SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { { ?b property:official_language resource:Spanish . ?b rdf:type ontology:fictional_location } UNION { ?b property:official_language resource:Spanish . ?b rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8818
P47
Q1048835
USER
Which political territories are bordered by Valencia ?
(c(Q1048835),P47,Q8818)
action filter_type
action find
entity Q8818
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q8818']
SELECT DISTINCT ?a WHERE { resource:Q8818 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Valencia
action filter_type
action find
entity Valencia
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Valencia']
SELECT DISTINCT ?a WHERE { resource:Valencia property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q23042 Q1010314 Q986084
SYSTEM
Paterna, Museros, Bétera
Q1648833 Q1993437 Q23042 Q55688 Q987383 Q1648851 Q1313044 Q945911 Q1982756 Q1010314 Q1771157 Q13725 Q1771153 Q1989342 Q1993019 Q1648768 Q1771131 Q102848 Q1312589 Q102862 Q1109227 Q668117 Q12442 Q1982784 Q986084 Q1982763 Q10843 Q1771187 Q102878 Q633096 Q1010291
(c(Q1048835),P47,Q8818)
action filter_type
action find
entity Q8818
relation P47
type Q1048835
[ANSWERS] are bordered by Valencia
[{'concept': 'Q1048835'}, 'P47', 'Q8818']
SELECT DISTINCT ?a WHERE { resource:Q8818 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Albal Rocafort Paterna Burjasot Alboraya Alfafar Masamagrell Quart de Poblet Godella Museros Alfara del Patriarca Chirivella Albuixech Massalfassar Meliana Almàssera Catarroja Paiporta Bonrepòs i Mirambell Sedaví Tavernes Blanques Foios Mislata Vinalesa Bétera Picanya Silla Albalat dels Sorells Massanassa Sollana Moncada
Paterna, Museros and Bétera are bordered by Valencia
Paterna Museros Bétera
action filter_type
action find
entity Valencia
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Valencia']
SELECT DISTINCT ?a WHERE { resource:Valencia property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23042
P276
Q1190554
USER
Which event is located at that political territory ?
(c(Q1190554),P276,Q23042)
action filter_type
action find_reverse
entity Q23042
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q23042']
SELECT DISTINCT ?p WHERE { ?p property:P276 resource:Q23042 . ?p rdf:type ontology:Q1190554 }
Paterna
action filter_type
action find_reverse
entity Paterna
relation location
type event
[{'concept': 'event'}, 'location', 'Paterna']
SELECT DISTINCT ?p WHERE { ?p property:location resource:Paterna . ?p rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q986084
SYSTEM
Did you mean Bétera ?
Q23042 Q1010314 Q986084
(c(Q1190554),P276,Q23042) (c(Q1190554),P276,Q1010314) (c(Q1190554),P276,Q986084)
[ANSWER]
[{'concept': 'Q1190554'}, 'P276', 'Q23042'] [{'concept': 'Q1190554'}, 'P276', 'Q1010314'] [{'concept': 'Q1190554'}, 'P276', 'Q986084']
SELECT DISTINCT ?p WHERE { ?p property:P276 resource:Q23042 . ?p rdf:type ontology:Q1190554 }
Paterna Museros Bétera
Did you mean Bétera ?
Bétera
[{'concept': 'event'}, 'location', 'Paterna'] [{'concept': 'event'}, 'location', 'Museros'] [{'concept': 'event'}, 'location', 'Bétera']
SELECT DISTINCT ?p WHERE { ?p property:location resource:Paterna . ?p rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
No, I meant Paterna. Could you tell me the answer for that?
(c(Q1190554),P276,Q23042)
Q23042
[{'concept': 'Q1190554'}, 'P276', 'Q23042']
[{'concept': 'event'}, 'location', 'Paterna']
[]
Q4871998
SYSTEM
Battle of Paterna
Q4871998
(c(Q1190554),P276,Q23042)
action filter_type
action find_reverse
entity Q23042
relation P276
type Q1190554
[ANSWER] is located at that political territory
[{'concept': 'Q1190554'}, 'P276', 'Q23042']
SELECT DISTINCT ?p WHERE { ?p property:P276 resource:Q23042 . ?p rdf:type ontology:Q1190554 }
Battle of Paterna
Battle of Paterna is located at that political territory
Battle of Paterna
action filter_type
action find_reverse
entity Paterna
relation location
type event
[{'concept': 'event'}, 'location', 'Paterna']
SELECT DISTINCT ?p WHERE { ?p property:location resource:Paterna . ?p rdf:type ontology:event }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1330796 Q1010314
P47
Q1048835
USER
Which political territories do Museros or Alegría-Dulantzi share a border with ?
OR((c(Q1048835),P47,Q1010314), (c(Q1048835),P47,Q1330796))
action filter_type
action union
action find_reverse
entity Q1010314
relation P47
action find_reverse
entity Q1330796
relation P47
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q1010314'], [{'concept': 'Q1048835'}, 'P47', 'Q1330796']]}
SELECT DISTINCT ?k WHERE { { { ?k property:P47 resource:Q1010314 } UNION { ?k property:P47 resource:Q1330796 } } . ?k rdf:type ontology:Q1048835 }
Alegría-Dulantzi Museros
action filter_type
action union
action find_reverse
entity Museros
relation shares border with
action find_reverse
entity Alegría-Dulantzi
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Museros'], [{'concept': 'political territorial entity'}, 'shares border with', 'Alegría-Dulantzi']]}
SELECT DISTINCT ?k WHERE { { { ?k property:shares_border_with resource:Museros } UNION { ?k property:shares_border_with resource:Alegría-Dulantzi } } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1771153 Q1382246 Q1010291 Q1313044 Q1810161 Q1369040 Q1989342 Q1616072 Q961216 Q2045916
SYSTEM
Some of them are Albuixech, Elburgo/Burgelu, Moncada, Masamagrell, Náquera, Arraia-Maeztu, Massalfassar, San Millán/Donemiliaga, Barrundia, Emperador
Q1771187 Q1810161 Q2045916 Q1771153 Q1989342 Q1313044 Q1616072 Q1443812 Q1982774 Q1368822 Q1369040 Q961216 Q1382246 Q1010291
OR((c(Q1048835),P47,Q1010314), (c(Q1048835),P47,Q1330796))
action filter_type
action union
action find_reverse
entity Q1010314
relation P47
action find_reverse
entity Q1330796
relation P47
type Q1048835
[ANSWERS] Museros or Alegría-Dulantzi share a border with
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q1010314'], [{'concept': 'Q1048835'}, 'P47', 'Q1330796']]}
SELECT DISTINCT ?k WHERE { { { ?k property:P47 resource:Q1010314 } UNION { ?k property:P47 resource:Q1330796 } } . ?k rdf:type ontology:Q1048835 }
Albalat dels Sorells Náquera Emperador Albuixech Massalfassar Masamagrell San Millán/Donemiliaga Iruraiz-Gauna Rafelbunyol Bernedo Arraia-Maeztu Barrundia Elburgo/Burgelu Moncada
Albuixech, Elburgo/Burgelu, Moncada, Masamagrell, Náquera, Arraia-Maeztu, Massalfassar, San Millán/Donemiliaga, Barrundia and Emperador Museros or Alegría-Dulantzi share a border with
Albuixech Elburgo/Burgelu Moncada Masamagrell Náquera Arraia-Maeztu Massalfassar San Millán/Donemiliaga Barrundia Emperador
action filter_type
action union
action find_reverse
entity Museros
relation shares border with
action find_reverse
entity Alegría-Dulantzi
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Museros'], [{'concept': 'political territorial entity'}, 'shares border with', 'Alegría-Dulantzi']]}
SELECT DISTINCT ?k WHERE { { { ?k property:shares_border_with resource:Museros } UNION { ?k property:shares_border_with resource:Alegría-Dulantzi } } . ?k rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q664
P122
Q22676587 Q7275 Q1048835
USER
Which political territories have approximately the same number of monarchic systems or states as government as New Zealand ?
(c(Q1048835),P122,c(Q22676587)|c(Q7275))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action count
action filter_multi_types
action find
entity Q664
relation P122
type Q22676587
type Q7275
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?h ) WHERE { { ?r property:P122 ?g . ?g rdf:type ontology:Q22676587 . ?r rdf:type ontology:Q1048835 } UNION { ?r property:P122 ?g . ?r rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q7275 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:Q664 property:P122 ?j . { { ?j rdf:type ontology:Q22676587 } UNION { ?j rdf:type ontology:Q7275 } } } } . FILTER ( ?h = ?y ) }
New Zealand
action approx
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 state
action count
action filter_multi_types
action find
entity New Zealand
relation basic form of government
type monarchic system
type state
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'state'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?h ) WHERE { { ?r property:basic_form_of_government ?g . ?g rdf:type ontology:monarchic_system . ?r rdf:type ontology:political_territorial_entity } UNION { ?r property:basic_form_of_government ?g . ?r rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:state } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:New_Zealand property:basic_form_of_government ?j . { { ?j rdf:type ontology:monarchic_system } UNION { ?j rdf:type ontology:state } } } } . FILTER ( ?h = ?y ) }
[]
monarchic system state political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q183 Q601252 Q193619 Q1059046 Q664 Q641138 Q1925048 Q785 Q178084 Q16 Q35 Q38610 Q79965 Q223793 Q2594990 Q408 Q757 Q468378 Q40 Q1250464 Q151938 Q31747
(c(Q1048835),P122,c(Q22676587)|c(Q7275))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action count
action filter_multi_types
action find
entity Q664
relation P122
type Q22676587
type Q7275
[ANSWERS] have approximately the same number of monarchic systems or states as government as New Zealand
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?h ) WHERE { { ?r property:P122 ?g . ?g rdf:type ontology:Q22676587 . ?r rdf:type ontology:Q1048835 } UNION { ?r property:P122 ?g . ?r rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q7275 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:Q664 property:P122 ?j . { { ?j rdf:type ontology:Q22676587 } UNION { ?j rdf:type ontology:Q7275 } } } } . FILTER ( ?h = ?y ) }
Germany Banovina of Croatia Union of South Africa Merkit people New Zealand Duchy of Cleves 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
Germany, Australia and Denmark have approximately the same number of monarchic systems or states as government as New Zealand
Germany Australia Denmark
action approx
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 state
action count
action filter_multi_types
action find
entity New Zealand
relation basic form of government
type monarchic system
type state
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'state'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?h ) WHERE { { ?r property:basic_form_of_government ?g . ?g rdf:type ontology:monarchic_system . ?r rdf:type ontology:political_territorial_entity } UNION { ?r property:basic_form_of_government ?g . ?r rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:state } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { resource:New_Zealand property:basic_form_of_government ?j . { { ?j rdf:type ontology:monarchic_system } UNION { ?j rdf:type ontology:state } } } } . FILTER ( ?h = ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q468378
P122
Q22676587 Q7275 Q1048835
USER
And also tell me about County of Hoya?
(c(Q1048835),P122,c(Q22676587)|c(Q7275))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action count
action filter_multi_types
action find
entity Q468378
relation P122
type Q22676587
type Q7275
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) ?g WHERE { { ?g property:P122 ?z . ?g rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q22676587 } UNION { ?g rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q7275 . ?g property:P122 ?z } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Q468378 property:P122 ?c . { { ?c rdf:type ontology:Q22676587 } UNION { ?c rdf:type ontology:Q7275 } } } } . FILTER ( ?o = ?i ) }
County of Hoya
action approx
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 state
action count
action filter_multi_types
action find
entity County of Hoya
relation basic form of government
type monarchic system
type state
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'state'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) ?g WHERE { { ?g property:basic_form_of_government ?z . ?g rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:monarchic_system } UNION { ?g rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:state . ?g property:basic_form_of_government ?z } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:County_of_Hoya property:basic_form_of_government ?c . { { ?c rdf:type ontology:monarchic_system } UNION { ?c rdf:type ontology:state } } } } . FILTER ( ?o = ?i ) }
[]
monarchic system state political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q183 Q601252 Q193619 Q1059046 Q664 Q641138 Q1925048 Q785 Q178084 Q16 Q35 Q38610 Q79965 Q223793 Q2594990 Q408 Q757 Q468378 Q40 Q1250464 Q151938 Q31747
(c(Q1048835),P122,c(Q22676587)|c(Q7275))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action count
action filter_multi_types
action find
entity Q468378
relation P122
type Q22676587
type Q7275
[ANSWERS]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) ?g WHERE { { ?g property:P122 ?z . ?g rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q22676587 } UNION { ?g rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q7275 . ?g property:P122 ?z } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:Q468378 property:P122 ?c . { { ?c rdf:type ontology:Q22676587 } UNION { ?c rdf:type ontology:Q7275 } } } } . FILTER ( ?o = ?i ) }
Germany Banovina of Croatia Union of South Africa Merkit people New Zealand Duchy of Cleves 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
Germany Australia Denmark
action approx
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 state
action count
action filter_multi_types
action find
entity County of Hoya
relation basic form of government
type monarchic system
type state
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'state'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) ?g WHERE { { ?g property:basic_form_of_government ?z . ?g rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:monarchic_system } UNION { ?g rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:state . ?g property:basic_form_of_government ?z } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { resource:County_of_Hoya property:basic_form_of_government ?c . { { ?c rdf:type ontology:monarchic_system } UNION { ?c rdf:type ontology:state } } } } . FILTER ( ?o = ?i ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Do Georgia have diplomatic relations with those political territories ?
(Q230,P530,Q183) (Q230,P530,Q408) (Q230,P530,Q35)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q183'] ['Q230', 'P530', 'Q408'] ['Q230', 'P530', 'Q35']
ASK WHERE { VALUES ( ?f ) { ( resource:Q183 ) ( resource:Q601252 ) ( resource:Q193619 ) } . resource:Q230 property:P530 ?f }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Germany'] ['Georgia', 'diplomatic relation', 'Australia'] ['Georgia', 'diplomatic relation', 'Denmark']
ASK WHERE { VALUES ( ?f ) { ( resource:Germany ) ( resource:Banovina_of_Croatia ) ( resource:Union_of_South_Africa ) } . resource:Georgia property:diplomatic_relation ?f }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q183) (Q230,P530,Q408) (Q230,P530,Q35)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q183'] ['Q230', 'P530', 'Q408'] ['Q230', 'P530', 'Q35']
ASK WHERE { VALUES ( ?f ) { ( resource:Q183 ) ( resource:Q601252 ) ( resource:Q193619 ) } . resource:Q230 property:P530 ?f }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Germany'] ['Georgia', 'diplomatic relation', 'Australia'] ['Georgia', 'diplomatic relation', 'Denmark']
ASK WHERE { VALUES ( ?f ) { ( resource:Germany ) ( resource:Banovina_of_Croatia ) ( resource:Union_of_South_Africa ) } . resource:Georgia property:diplomatic_relation ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8818
P163
Q17335294
USER
Which coat of arms is associated with Valencia ?
(Q8818,P163,c(Q17335294))
action filter_type
action find
entity Q8818
relation P163
type Q17335294
['Q8818', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?f WHERE { resource:Q8818 property:P163 ?f . ?f rdf:type ontology:Q17335294 }
Valencia
action filter_type
action find
entity Valencia
relation flag
type flag or coat of arms
['Valencia', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?f WHERE { resource:Valencia property:flag ?f . ?f rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q933011
SYSTEM
flag of the Valencian Community
Q933011
(Q8818,P163,c(Q17335294))
action filter_type
action find
entity Q8818
relation P163
type Q17335294
The [ANSWER] is associated with Valencia
['Q8818', 'P163', {'concept': 'Q17335294'}]
SELECT DISTINCT ?f WHERE { resource:Q8818 property:P163 ?f . ?f rdf:type ontology:Q17335294 }
flag of the Valencian Community
The flag of the Valencian Community is associated with Valencia
flag of the Valencian Community
action filter_type
action find
entity Valencia
relation flag
type flag or coat of arms
['Valencia', 'flag', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?f WHERE { resource:Valencia property:flag ?f . ?f rdf:type ontology:flag_or_coat_of_arms }
[]