Simple Question (Direct)
Simple Question
Q1584614
P19
Q56061
USER
Which administrative territory was Heinz Suhr born at ?
(Q1584614,P19,c(Q56061))
action filter_type
action find
entity Q1584614
relation P19
type Q56061
['Q1584614', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1584614 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Heinz Suhr
action filter_type
action find
entity Heinz Suhr
relation place of birth
type administrative territorial entity
['Heinz Suhr', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Heinz_Suhr property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1707
SYSTEM
Kiel
Q1707
(Q1584614,P19,c(Q56061))
action filter_type
action find
entity Q1584614
relation P19
type Q56061
Heinz Suhr was born in [ANSWER]
['Q1584614', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1584614 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Kiel
Heinz Suhr was born in Kiel
Kiel
action filter_type
action find
entity Heinz Suhr
relation place of birth
type administrative territorial entity
['Heinz Suhr', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Heinz_Suhr property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1707
P17
Q3024240
USER
Which former country is that administrative territory a part of ?
(Q1707,P17,c(Q3024240))
action filter_type
action find
entity Q1707
relation P17
type Q3024240
['Q1707', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?z WHERE { resource:Q1707 property:P17 ?z . ?z rdf:type ontology:Q3024240 }
Kiel
action filter_type
action find
entity Kiel
relation country
type former country
['Kiel', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?z WHERE { resource:Kiel property:country ?z . ?z rdf:type ontology:former_country }
[]
former country
Q43287
SYSTEM
German Empire
Q43287
(Q1707,P17,c(Q3024240))
action filter_type
action find
entity Q1707
relation P17
type Q3024240
[ANSWER] is that administrative territory a part of
['Q1707', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?z WHERE { resource:Q1707 property:P17 ?z . ?z rdf:type ontology:Q3024240 }
German Empire
German Empire is that administrative territory a part of
German Empire
action filter_type
action find
entity Kiel
relation country
type former country
['Kiel', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?z WHERE { resource:Kiel property:country ?z . ?z rdf:type ontology:former_country }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q226000
Q3024240
USER
And what about Jimbolia?
(Q226000,P17,c(Q3024240))
action filter_type
action find
entity Q226000
relation P17
type Q3024240
['Q226000', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?t WHERE { resource:Q226000 property:P17 ?t . ?t rdf:type ontology:Q3024240 }
Jimbolia
action filter_type
action find
entity Jimbolia
relation country
type former country
['Jimbolia', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?t WHERE { resource:Jimbolia property:country ?t . ?t rdf:type ontology:former_country }
[]
former country
Q28513 Q12560
SYSTEM
Austria-Hungary, Ottoman Empire
Q28513 Q12560
(Q226000,P17,c(Q3024240))
action filter_type
action find
entity Q226000
relation P17
type Q3024240
[ANSWERS]
['Q226000', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ?t WHERE { resource:Q226000 property:P17 ?t . ?t rdf:type ontology:Q3024240 }
Austria-Hungary Ottoman Empire
Austria-Hungary Ottoman Empire
action filter_type
action find
entity Jimbolia
relation country
type former country
['Jimbolia', 'country', {'concept': 'former country'}]
SELECT DISTINCT ?t WHERE { resource:Jimbolia property:country ?t . ?t rdf:type ontology:former_country }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q28513 Q12560
P194
Q1752346
USER
Which assemblies are the legislative bodies for Austria-Hungary and Ottoman Empire ?
(Q28513,P194,c(Q1752346)) (Q12560,P194,c(Q1752346))
action union
action filter_type
action find
entity Q28513
relation P194
type Q1752346
action filter_type
action find
entity Q12560
relation P194
type Q1752346
['Q28513', 'P194', {'concept': 'Q1752346'}] ['Q12560', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:Q1752346 . resource:Q28513 property:P194 ?x } UNION { resource:Q12560 property:P194 ?x . ?x rdf:type ontology:Q1752346 } }
Austria-Hungary Ottoman Empire
action union
action filter_type
action find
entity Austria-Hungary
relation legislative body
type assembly
action filter_type
action find
entity Ottoman Empire
relation legislative body
type assembly
['Austria-Hungary', 'legislative body', {'concept': 'assembly'}] ['Ottoman Empire', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:assembly . resource:Austria-Hungary property:legislative_body ?x } UNION { resource:Ottoman_Empire property:legislative_body ?x . ?x rdf:type ontology:assembly } }
[]
assembly
Q697775 Q3333555
SYSTEM
Imperial Council, General Assembly of the Ottoman Empire
Q697775 Q3333555
(Q28513,P194,c(Q1752346)) (Q12560,P194,c(Q1752346))
action union
action filter_type
action find
entity Q28513
relation P194
type Q1752346
action filter_type
action find
entity Q12560
relation P194
type Q1752346
[ANSWERS] are the legislative bodies for Austria-Hungary and Ottoman Empire
['Q28513', 'P194', {'concept': 'Q1752346'}] ['Q12560', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:Q1752346 . resource:Q28513 property:P194 ?x } UNION { resource:Q12560 property:P194 ?x . ?x rdf:type ontology:Q1752346 } }
Imperial Council General Assembly of the Ottoman Empire
Imperial Council and General Assembly of the Ottoman Empire are the legislative bodies for Austria-Hungary and Ottoman Empire
Imperial Council General Assembly of the Ottoman Empire
action union
action filter_type
action find
entity Austria-Hungary
relation legislative body
type assembly
action filter_type
action find
entity Ottoman Empire
relation legislative body
type assembly
['Austria-Hungary', 'legislative body', {'concept': 'assembly'}] ['Ottoman Empire', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?x WHERE { { ?x rdf:type ontology:assembly . resource:Austria-Hungary property:legislative_body ?x } UNION { resource:Ottoman_Empire property:legislative_body ?x . ?x rdf:type ontology:assembly } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3333555
P1001
Q3024240
USER
Which former country applies to jurisdiction of that assembly ?
(Q3333555,P1001,c(Q3024240))
action filter_type
action find
entity Q3333555
relation P1001
type Q3024240
['Q3333555', 'P1001', {'concept': 'Q3024240'}]
SELECT DISTINCT ?v WHERE { resource:Q3333555 property:P1001 ?v . ?v rdf:type ontology:Q3024240 }
General Assembly of the Ottoman Empire
action filter_type
action find
entity General Assembly of the Ottoman Empire
relation applies to jurisdiction
type former country
['General Assembly of the Ottoman Empire', 'applies to jurisdiction', {'concept': 'former country'}]
SELECT DISTINCT ?v WHERE { resource:General_Assembly_of_the_Ottoman_Empire property:applies_to_jurisdiction ?v . ?v rdf:type ontology:former_country }
[]
former country
Clarification for simple ques.
Q3333555
SYSTEM
Did you mean General Assembly of the Ottoman Empire ?
Q697775 Q3333555
(Q697775,P1001,c(Q3024240)) (Q3333555,P1001,c(Q3024240))
[ANSWER]
['Q697775', 'P1001', {'concept': 'Q3024240'}] ['Q3333555', 'P1001', {'concept': 'Q3024240'}]
SELECT DISTINCT ?v WHERE { resource:Q3333555 property:P1001 ?v . ?v rdf:type ontology:Q3024240 }
Imperial Council General Assembly of the Ottoman Empire
Did you mean General Assembly of the Ottoman Empire ?
General Assembly of the Ottoman Empire
['Imperial Council', 'applies to jurisdiction', {'concept': 'former country'}] ['General Assembly of the Ottoman Empire', 'applies to jurisdiction', {'concept': 'former country'}]
SELECT DISTINCT ?v WHERE { resource:General_Assembly_of_the_Ottoman_Empire property:applies_to_jurisdiction ?v . ?v rdf:type ontology:former_country }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3333555,P1001,c(Q3024240))
['Q3333555', 'P1001', {'concept': 'Q3024240'}]
['General Assembly of the Ottoman Empire', 'applies to jurisdiction', {'concept': 'former country'}]
[]
Q12560
SYSTEM
Ottoman Empire
Q12560
(Q3333555,P1001,c(Q3024240))
action filter_type
action find
entity Q3333555
relation P1001
type Q3024240
[ANSWER] applies to jurisdiction of that assembly
['Q3333555', 'P1001', {'concept': 'Q3024240'}]
SELECT DISTINCT ?v WHERE { resource:Q3333555 property:P1001 ?v . ?v rdf:type ontology:Q3024240 }
Ottoman Empire
Ottoman Empire applies to jurisdiction of that assembly
Ottoman Empire
action filter_type
action find
entity General Assembly of the Ottoman Empire
relation applies to jurisdiction
type former country
['General Assembly of the Ottoman Empire', 'applies to jurisdiction', {'concept': 'former country'}]
SELECT DISTINCT ?v WHERE { resource:General_Assembly_of_the_Ottoman_Empire property:applies_to_jurisdiction ?v . ?v rdf:type ontology:former_country }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28513
P137
Q2235308
USER
Which ship type was operated by Austria-Hungary ?
(c(Q2235308),P137,Q28513)
action filter_type
action find_reverse
entity Q28513
relation P137
type Q2235308
[{'concept': 'Q2235308'}, 'P137', 'Q28513']
SELECT DISTINCT ?j WHERE { ?j property:P137 resource:Q28513 . ?j rdf:type ontology:Q2235308 }
Austria-Hungary
action filter_type
action find_reverse
entity Austria-Hungary
relation operator
type ship type
[{'concept': 'ship type'}, 'operator', 'Austria-Hungary']
SELECT DISTINCT ?j WHERE { ?j property:operator resource:Austria-Hungary . ?j rdf:type ontology:ship_type }
[]
ship type
Q576820
SYSTEM
Habsburg-class battleship
Q576820
(c(Q2235308),P137,Q28513)
action filter_type
action find_reverse
entity Q28513
relation P137
type Q2235308
[ANSWER] was operated by Austria-Hungary
[{'concept': 'Q2235308'}, 'P137', 'Q28513']
SELECT DISTINCT ?j WHERE { ?j property:P137 resource:Q28513 . ?j rdf:type ontology:Q2235308 }
Habsburg-class battleship
Habsburg-class battleship was operated by Austria-Hungary
Habsburg-class battleship
action filter_type
action find_reverse
entity Austria-Hungary
relation operator
type ship type
[{'concept': 'ship type'}, 'operator', 'Austria-Hungary']
SELECT DISTINCT ?j WHERE { ?j property:operator resource:Austria-Hungary . ?j rdf:type ontology:ship_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28513
P30
Q2221906
USER
Which geographic location is Austria-Hungary located in ?
(Q28513,P30,c(Q2221906))
action filter_type
action find
entity Q28513
relation P30
type Q2221906
['Q28513', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q28513 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Austria-Hungary
action filter_type
action find
entity Austria-Hungary
relation continent
type geographic location
['Austria-Hungary', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Austria-Hungary property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q28513,P30,c(Q2221906))
action filter_type
action find
entity Q28513
relation P30
type Q2221906
Which geographic location is Austria-Hungary located in
['Q28513', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q28513 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Europe
Which geographic location is Austria-Hungary located in
Europe
action filter_type
action find
entity Austria-Hungary
relation continent
type geographic location
['Austria-Hungary', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Austria-Hungary property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q28513
P47
Q3024240
USER
Which former countries are adjacent to that one ?
(Q46,P47,c(Q3024240))
action filter_type
action find
entity Q28513
relation P47
type Q3024240
['Q46', 'P47', {'concept': 'Q3024240'}]
SELECT DISTINCT ?a WHERE { resource:Q28513 property:P47 ?a . ?a rdf:type ontology:Q3024240 }
Austria-Hungary
action filter_type
action find
entity Austria-Hungary
relation shares border with
type former country
['Europe', 'shares border with', {'concept': 'former country'}]
SELECT DISTINCT ?a WHERE { resource:Austria-Hungary property:shares_border_with ?a . ?a rdf:type ontology:former_country }
[]
former country
Q12560 Q34266 Q43287
SYSTEM
Ottoman Empire, Russian Empire, German Empire
Q12560 Q34266 Q43287
(Q46,P47,c(Q3024240))
action filter_type
action find
entity Q28513
relation P47
type Q3024240
[ANSWERS] are adjacent to that one
['Q46', 'P47', {'concept': 'Q3024240'}]
SELECT DISTINCT ?a WHERE { resource:Q28513 property:P47 ?a . ?a rdf:type ontology:Q3024240 }
Ottoman Empire Russian Empire German Empire
Ottoman Empire, Russian Empire and German Empire are adjacent to that one
Ottoman Empire Russian Empire German Empire
action filter_type
action find
entity Austria-Hungary
relation shares border with
type former country
['Europe', 'shares border with', {'concept': 'former country'}]
SELECT DISTINCT ?a WHERE { resource:Austria-Hungary property:shares_border_with ?a . ?a rdf:type ontology:former_country }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7988329 Q28513
P36
Q56061
USER
Which administrative territories are the capitals of Austria-Hungary or Western State ?
OR((Q28513,P36,c(Q56061)), (Q7988329,P36,c(Q56061)))
action filter_type
action union
action find
entity Q28513
relation P36
action find
entity Q7988329
relation P36
type Q56061
{'OR': [['Q28513', 'P36', {'concept': 'Q56061'}], ['Q7988329', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q28513 property:P36 ?o } UNION { resource:Q7988329 property:P36 ?o } } . ?o rdf:type ontology:Q56061 }
Western State Austria-Hungary
action filter_type
action union
action find
entity Austria-Hungary
relation capital
action find
entity Western State
relation capital
type administrative territorial entity
{'OR': [['Austria-Hungary', 'capital', {'concept': 'administrative territorial entity'}], ['Western State', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Austria-Hungary property:capital ?o } UNION { resource:Western_State property:capital ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741 Q1781 Q183298
SYSTEM
Vienna, Budapest, Ibadan
Q1741 Q1781 Q183298
OR((Q28513,P36,c(Q56061)), (Q7988329,P36,c(Q56061)))
action filter_type
action union
action find
entity Q28513
relation P36
action find
entity Q7988329
relation P36
type Q56061
[ANSWERS] are the capitals of Austria-Hungary or Western State
{'OR': [['Q28513', 'P36', {'concept': 'Q56061'}], ['Q7988329', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q28513 property:P36 ?o } UNION { resource:Q7988329 property:P36 ?o } } . ?o rdf:type ontology:Q56061 }
Vienna Budapest Ibadan
Vienna, Budapest and Ibadan are the capitals of Austria-Hungary or Western State
Vienna Budapest Ibadan
action filter_type
action union
action find
entity Austria-Hungary
relation capital
action find
entity Western State
relation capital
type administrative territorial entity
{'OR': [['Austria-Hungary', 'capital', {'concept': 'administrative territorial entity'}], ['Western State', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Austria-Hungary property:capital ?o } UNION { resource:Western_State property:capital ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
How many ship types have around 2 administrative territories as their base harbour ?
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?a ) WHERE { ?x property:P532 ?u . ?x rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 } GROUP BY ?x } . FILTER ( ?a = 2 ) }
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?a ) WHERE { ?x property:port_of_registry ?u . ?x rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?a = 2 ) }
[]
administrative territorial entity ship type
SYSTEM
4
Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?a ) WHERE { ?x property:P532 ?u . ?x rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 } GROUP BY ?x } . FILTER ( ?a = 2 ) }
Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
4
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?a ) WHERE { ?x property:port_of_registry ?u . ?x rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?a = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories have exactly 1 people or holidays as their patron saint ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action equal
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ?p . VALUES ( ?p ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?q } . FILTER ( ?v = 1 ) }
action equal
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ?p . VALUES ( ?p ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?q } . FILTER ( ?v = 1 ) }
[]
common name holiday administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action equal
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[ANSWERS] have exactly 1 people or holidays as their patron saint
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ?p . VALUES ( ?p ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?q } . FILTER ( ?v = 1 ) }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow, Madrid and Milan have exactly 1 people or holidays as their patron saint
Moscow Madrid Milan
action equal
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?v ) WHERE { ?x rdf:type ?p . VALUES ( ?p ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?q } . FILTER ( ?v = 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1486
P190
Q515
USER
Are Buenos Aires partner town of those administrative territories ?
(Q1486,P190,Q649) (Q1486,P190,Q2807) (Q1486,P190,Q490)
action is_in
entity prev_answer
action find
entity Q1486
relation P190
['Q1486', 'P190', 'Q649'] ['Q1486', 'P190', 'Q2807'] ['Q1486', 'P190', 'Q490']
ASK WHERE { VALUES ( ?a ) { ( resource:Q5818 ) ( resource:Q187352 ) ( resource:Q11974 ) } . resource:Q1486 property:P190 ?a }
Buenos Aires
action is_in
entity prev_answer
action find
entity Buenos Aires
relation sister city
['Buenos Aires', 'sister city', 'Moscow'] ['Buenos Aires', 'sister city', 'Madrid'] ['Buenos Aires', 'sister city', 'Milan']
ASK WHERE { VALUES ( ?a ) { ( resource:Córdoba ) ( resource:Kavala ) ( resource:Las_Palmas_de_Gran_Canaria ) } . resource:Buenos_Aires property:sister_city ?a }
[]
city
SYSTEM
YES
(Q1486,P190,Q649) (Q1486,P190,Q2807) (Q1486,P190,Q490)
action is_in
entity prev_answer
action find
entity Q1486
relation P190
[ANSWER]
['Q1486', 'P190', 'Q649'] ['Q1486', 'P190', 'Q2807'] ['Q1486', 'P190', 'Q490']
ASK WHERE { VALUES ( ?a ) { ( resource:Q5818 ) ( resource:Q187352 ) ( resource:Q11974 ) } . resource:Q1486 property:P190 ?a }
Yes
action is_in
entity prev_answer
action find
entity Buenos Aires
relation sister city
['Buenos Aires', 'sister city', 'Moscow'] ['Buenos Aires', 'sister city', 'Madrid'] ['Buenos Aires', 'sister city', 'Milan']
ASK WHERE { VALUES ( ?a ) { ( resource:Córdoba ) ( resource:Kavala ) ( resource:Las_Palmas_de_Gran_Canaria ) } . resource:Buenos_Aires property:sister_city ?a }
[]