Simple Question (Direct)
Simple Question
Q64032
P190
Q56061
USER
Which administrative territory is twin city of Uster ?
(Q64032,P190,c(Q56061))
action filter_type
action find
entity Q64032
relation P190
type Q56061
['Q64032', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q64032 property:P190 ?g . ?g rdf:type ontology:Q56061 }
Uster
action filter_type
action find
entity Uster
relation sister city
type administrative territorial entity
['Uster', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Uster property:sister_city ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q537214
SYSTEM
Prenzlau
Q537214
(Q64032,P190,c(Q56061))
action filter_type
action find
entity Q64032
relation P190
type Q56061
[ANSWER] is twin city of Uster
['Q64032', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q64032 property:P190 ?g . ?g rdf:type ontology:Q56061 }
Prenzlau
Prenzlau is twin city of Uster
Prenzlau
action filter_type
action find
entity Uster
relation sister city
type administrative territorial entity
['Uster', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Uster property:sister_city ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q537214
P159
Q1048835
USER
Which political territory has its head office location at that administrative territory ?
(c(Q1048835),P159,Q537214)
action filter_type
action find_reverse
entity Q537214
relation P159
type Q1048835
[{'concept': 'Q1048835'}, 'P159', 'Q537214']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . ?v property:P159 resource:Q537214 }
Prenzlau
action filter_type
action find_reverse
entity Prenzlau
relation headquarters location
type political territorial entity
[{'concept': 'political territorial entity'}, 'headquarters location', 'Prenzlau']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . ?v property:headquarters_location resource:Prenzlau }
[]
political territorial entity
Q6109
SYSTEM
Uckermark
Q6109
(c(Q1048835),P159,Q537214)
action filter_type
action find_reverse
entity Q537214
relation P159
type Q1048835
[ANSWER] has its head office location at that administrative territory
[{'concept': 'Q1048835'}, 'P159', 'Q537214']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . ?v property:P159 resource:Q537214 }
Uckermark
Uckermark has its head office location at that administrative territory
Uckermark
action filter_type
action find_reverse
entity Prenzlau
relation headquarters location
type political territorial entity
[{'concept': 'political territorial entity'}, 'headquarters location', 'Prenzlau']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . ?v property:headquarters_location resource:Prenzlau }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q537214
P20
Q502895
USER
Which people have that administrative territory as the area of death ?
(c(Q502895),P20,Q6109)
action filter_type
action find_reverse
entity Q537214
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q6109']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P20 resource:Q537214 }
Prenzlau
action filter_type
action find_reverse
entity Prenzlau
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Uckermark']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:place_of_death resource:Prenzlau }
[]
common name
Q95796 Q75874 Q1560524
SYSTEM
Johann Jakob von Wunsch, Henning von Holtzendorff, Günter Guttmann
Q1560524 Q95796 Q2572852 Q2574543 Q2149992 Q1583350 Q1360417 Q826310 Q75874
(c(Q502895),P20,Q6109)
action filter_type
action find_reverse
entity Q537214
relation P20
type Q502895
[ANSWERS] have that administrative territory as the area of death
[{'concept': 'Q502895'}, 'P20', 'Q6109']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?d property:P20 resource:Q537214 }
Günter Guttmann Johann Jakob von Wunsch Wilhelm Grabow Wilhelm Pökel Richard Krüger Hans von Arnim Ernst Unger Bernhard von Lepel Henning von Holtzendorff
Johann Jakob von Wunsch, Henning von Holtzendorff and Günter Guttmann have that administrative territory as the area of death
Johann Jakob von Wunsch Henning von Holtzendorff Günter Guttmann
action filter_type
action find_reverse
entity Prenzlau
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Uckermark']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?d property:place_of_death resource:Prenzlau }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q1048835 Q515 Q20667921
USER
Which political territories have max number of cities or french administrative divisions as their county seat ?
(c(Q515)|c(Q20667921),P1376,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?w = ?x ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?e WHERE { { ?t property:P1376 ?e . ?e rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q515 } UNION { ?e rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q20667921 . ?t property:P1376 ?e } } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?l ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?d WHERE { { ?h property:P1376 ?d . ?d rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q515 } UNION { ?h property:P1376 ?d . ?d rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q20667921 } } GROUP BY ?d } } }
action argmax
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
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?w = ?x ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?e WHERE { { ?t property:capital_of ?e . ?e rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:city } UNION { ?e rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:type_of_french_administrative_division . ?t property:capital_of ?e } } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?l ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?d WHERE { { ?h property:capital_of ?d . ?d rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:city } UNION { ?h property:capital_of ?d . ?d rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?d } } }
[]
political territorial entity city type of french administrative division
Q22880
SYSTEM
Electoral Palatinate
Q22880
(c(Q515)|c(Q20667921),P1376,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
[ANSWER] have max number of cities or french administrative divisions as their county seat
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?w = ?x ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?e WHERE { { ?t property:P1376 ?e . ?e rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q515 } UNION { ?e rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q20667921 . ?t property:P1376 ?e } } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?l ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?d WHERE { { ?h property:P1376 ?d . ?d rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q515 } UNION { ?h property:P1376 ?d . ?d rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q20667921 } } GROUP BY ?d } } }
Electoral Palatinate
Electoral Palatinate have max number of cities or french administrative divisions as their county seat
Electoral Palatinate
action argmax
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
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?w = ?x ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?e WHERE { { ?t property:capital_of ?e . ?e rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:city } UNION { ?e rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:type_of_french_administrative_division . ?t property:capital_of ?e } } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?l ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?d WHERE { { ?h property:capital_of ?d . ?d rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:city } UNION { ?h property:capital_of ?d . ?d rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?d } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q22880
P36
Q515 Q56061
USER
How many cities and administrative territories are associated to Electoral Palatinate as the capital ?
(Q22880,P36,c(Q515)) (Q22880,P36,c(Q56061))
action count
action union
action filter_type
action find
entity Q22880
relation P36
type Q515
action filter_type
action find
entity Q22880
relation P36
type Q56061
['Q22880', 'P36', {'concept': 'Q515'}] ['Q22880', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { VALUES ( ?f ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?v rdf:type ?f }
Electoral Palatinate
action count
action union
action filter_type
action find
entity Electoral Palatinate
relation capital
type city
action filter_type
action find
entity Electoral Palatinate
relation capital
type administrative territorial entity
['Electoral Palatinate', 'capital', {'concept': 'city'}] ['Electoral Palatinate', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { VALUES ( ?f ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?v rdf:type ?f }
[]
city administrative territorial entity
SYSTEM
2 cities and 1 administrative territories
Q1718 Q2119 Q2966
(Q22880,P36,c(Q515)) (Q22880,P36,c(Q56061))
action count
action union
action filter_type
action find
entity Q22880
relation P36
type Q515
action filter_type
action find
entity Q22880
relation P36
type Q56061
[ANSWER]
['Q22880', 'P36', {'concept': 'Q515'}] ['Q22880', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { VALUES ( ?f ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?v rdf:type ?f }
Düsseldorf Mannheim Heidelberg
2 cities and 1 administrative territories
action count
action union
action filter_type
action find
entity Electoral Palatinate
relation capital
type city
action filter_type
action find
entity Electoral Palatinate
relation capital
type administrative territorial entity
['Electoral Palatinate', 'capital', {'concept': 'city'}] ['Electoral Palatinate', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { VALUES ( ?f ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?v rdf:type ?f }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2372248 Q22880
P1376
Q515
USER
Which cities are the capital of Electoral Palatinate or Free State of Oldenburg ?
OR((c(Q515),P1376,Q22880), (c(Q515),P1376,Q2372248))
action filter_type
action union
action find_reverse
entity Q22880
relation P1376
action find_reverse
entity Q2372248
relation P1376
type Q515
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q22880'], [{'concept': 'Q515'}, 'P1376', 'Q2372248']]}
SELECT DISTINCT ?f WHERE { { { ?f property:P1376 resource:Q2372248 } UNION { ?f property:P1376 resource:Q22880 } } . ?f rdf:type ontology:Q515 }
Free State of Oldenburg Electoral Palatinate
action filter_type
action union
action find_reverse
entity Electoral Palatinate
relation capital of
action find_reverse
entity Free State of Oldenburg
relation capital of
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Electoral Palatinate'], [{'concept': 'city'}, 'capital of', 'Free State of Oldenburg']]}
SELECT DISTINCT ?f WHERE { { { ?f property:capital_of resource:Free_State_of_Oldenburg } UNION { ?f property:capital_of resource:Electoral_Palatinate } } . ?f rdf:type ontology:city }
[]
city
Q2119 Q2966 Q2936
SYSTEM
Mannheim, Heidelberg, Oldenburg
Q2119 Q2966 Q2936
OR((c(Q515),P1376,Q22880), (c(Q515),P1376,Q2372248))
action filter_type
action union
action find_reverse
entity Q22880
relation P1376
action find_reverse
entity Q2372248
relation P1376
type Q515
[ANSWERS] are the capital of Electoral Palatinate or Free State of Oldenburg
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q22880'], [{'concept': 'Q515'}, 'P1376', 'Q2372248']]}
SELECT DISTINCT ?f WHERE { { { ?f property:P1376 resource:Q2372248 } UNION { ?f property:P1376 resource:Q22880 } } . ?f rdf:type ontology:Q515 }
Mannheim Heidelberg Oldenburg
Mannheim, Heidelberg and Oldenburg are the capital of Electoral Palatinate or Free State of Oldenburg
Mannheim Heidelberg Oldenburg
action filter_type
action union
action find_reverse
entity Electoral Palatinate
relation capital of
action find_reverse
entity Free State of Oldenburg
relation capital of
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Electoral Palatinate'], [{'concept': 'city'}, 'capital of', 'Free State of Oldenburg']]}
SELECT DISTINCT ?f WHERE { { { ?f property:capital_of resource:Free_State_of_Oldenburg } UNION { ?f property:capital_of resource:Electoral_Palatinate } } . ?f rdf:type ontology:city }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P840
Q515 Q2342494 Q15416
USER
Which cities are around the same number of collectables or television programs set in as that city ?
(c(Q2342494)|c(Q15416),P840,c(Q515))
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P840 ?y } UNION { ?x property:P840 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q15416 }
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:narrative_location ?y } UNION { ?x property:narrative_location ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:city . ?x rdf:type ontology:television_program }
[]
city collectable television program
Comparative|More/Less|Mult. entity type|Clarification
Q2966
SYSTEM
Did you mean Heidelberg ?
(c(Q2342494)|c(Q15416),P840,c(Q515))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P840 ?y } UNION { ?x property:P840 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q15416 }
Did you mean Heidelberg ?
Heidelberg
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:narrative_location ?y } UNION { ?x property:narrative_location ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:city . ?x rdf:type ontology:television_program }
[]
Comparative Reasoning (All)
USER
No, I meant Mannheim. Could you tell me the answer for that?
(c(Q2342494)|c(Q15416),P840,c(Q515))
Q2119
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q515'}]
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'city'}]
[]
Q1486 Q1899 Q1794
SYSTEM
Buenos Aires, Kyiv, Frankfurt
Q1410 Q34261 Q2749 Q8684 Q2100 Q23482 Q5690 Q1530 Q1641811 Q1355 Q1794 Q456 Q386635 Q1519 Q5838 Q841125 Q66485 Q9005 Q14821 Q3852 Q1711 Q2337 Q6602 Q3870 Q3955 Q3838 Q16506 Q2833 Q1533 Q19660 Q19689 Q6582 Q2079 Q1486 Q11194 Q34217 Q42622 Q3994 Q3572 Q2119 Q3616 Q3126 Q3004 Q1461 Q7473516 Q1854 Q2135 Q43196 Q235 Q17042 Q3692 Q2887 Q3014 Q1899 Q2978 Q2999
(c(Q2342494)|c(Q15416),P840,c(Q515))
[ANSWERS] are around the same number of collectables or television programs set in as that city
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P840 ?y } UNION { ?x property:P840 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q15416 }
Gibraltar Port-au-Prince Augsburg Seoul Duisburg Marseille Sparta Baghdad Mirotice Bangalore Frankfurt Lyon Hikone Abu Dhabi Kabul Tsuyama Jaipur Brussels Coburg Worms Potsdam Smolensk Strasbourg Nairobi Weimar Kinshasa České Budějovice Freiburg im Breisgau Caracas Bucharest Tirana Carcassonne Leipzig Buenos Aires Sarajevo Oxford Suzhou Kempten Tunis Mannheim Tehran Erlangen Ingolstadt Manila Tokyo Ho Chi Minh City Winnipeg Cincinnati Monaco Oakland Riyadh Santiago Wolfsburg Kyiv Regensburg Würzburg
Buenos Aires, Kyiv and Frankfurt are around the same number of collectables or television programs set in as that city
Buenos Aires Kyiv Frankfurt
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:narrative_location ?y } UNION { ?x property:narrative_location ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:city . ?x rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1486 Q1899 Q1794
P190
Q56061
USER
Which administrative territories are a sister city of Buenos Aires, Kyiv and Frankfurt ?
(c(Q56061),P190,Q1486) (c(Q56061),P190,Q1899) (c(Q56061),P190,Q1794)
action union
action filter_type
action find_reverse
entity Q1486
relation P190
type Q56061
action filter_type
action find_reverse
entity Q1899
relation P190
type Q56061
action filter_type
action find_reverse
entity Q1794
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1486'] [{'concept': 'Q56061'}, 'P190', 'Q1899'] [{'concept': 'Q56061'}, 'P190', 'Q1794']
SELECT DISTINCT ?i WHERE { ?i property:P190 ?k . VALUES ( ?k ) { ( resource:Q1899 ) ( resource:Q1486 ) } }
Buenos Aires Kyiv Frankfurt
action union
action filter_type
action find_reverse
entity Buenos Aires
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Kyiv
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Frankfurt
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Buenos Aires'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Kyiv'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Frankfurt']
SELECT DISTINCT ?i WHERE { ?i property:sister_city ?k . VALUES ( ?k ) { ( resource:Kyiv ) ( resource:Buenos_Aires ) } }
[]
administrative territorial entity
Q1085 Q1085 Q649
SYSTEM
Moscow for 3rd, Prague for 1st, 2nd
Q14314 Q10400 Q7880 Q1524 Q1930 Q34370 Q2807 Q8692 Q956 Q2868 Q1492 Q1218 Q1085 Q15695 Q649 Q15682 Q628 Q270 Q13678 Q34820 Q1335 Q2656 Q2634 Q490 Q33935 Q174 Q3766 Q3711 Q5465 Q40269 Q597 Q518431 Q1449 Q1897 Q8717 Q71 Q8745 Q25395 Q64 Q1489 Q3820 Q84 Q85 Q406 Q8678 Q244324 Q7880 Q1524 Q1520 Q994 Q956 Q1297 Q727 Q40840 Q9248 Q23436 Q472 Q216 Q270 Q5168 Q3640 Q1726 Q206954 Q1770 Q21197 Q1757 Q1754 Q172 Q1741 Q2044 Q3711 Q1780 Q1781 Q25331 Q2280 Q1489 Q239 Q8678 Q205648 Q1085 Q612 Q490 Q33935 Q172 Q1781 Q85
(c(Q56061),P190,Q1486) (c(Q56061),P190,Q1899) (c(Q56061),P190,Q1794)
action union
action filter_type
action find_reverse
entity Q1486
relation P190
type Q56061
action filter_type
action find_reverse
entity Q1899
relation P190
type Q56061
action filter_type
action find_reverse
entity Q1794
relation P190
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P190', 'Q1486'] [{'concept': 'Q56061'}, 'P190', 'Q1899'] [{'concept': 'Q56061'}, 'P190', 'Q1794']
SELECT DISTINCT ?i WHERE { ?i property:P190 ?k . VALUES ( ?k ) { ( resource:Q1899 ) ( resource:Q1486 ) } }
Santiago de Compostela Almería Toulouse Athens Ottawa Rotterdam Madrid Bilbao Beijing Lima Barcelona Jerusalem Prague Salamanca Moscow Cádiz Bergamo Warsaw Agrigento Santo Domingo Montevideo Palermo Naples Milan Tel Aviv São Paulo Damascus Belgrade Cape Town Porto Alegre Lisbon Chimbote Genoa Cagliari Seville Geneva Vigo Newark Berlin Mexico City Beirut London Cairo Istanbul Rio de Janeiro Guadix Toulouse Athens Astana Tbilisi Beijing Chicago Amsterdam Tampere Baku Edinburgh Sofia Vilnius Warsaw Makhachkala Ankara Munich Kastoria Tallinn Chișinău Helsinki Stockholm Toronto Vienna Florence Belgrade Bratislava Budapest Odense Minsk Mexico City Brussels Rio de Janeiro Granada Prague Dubai Milan Tel Aviv Toronto Budapest Cairo
Prague, Prague and Moscow are a sister city of Buenos Aires, Kyiv and Frankfurt
Prague Prague Moscow
action union
action filter_type
action find_reverse
entity Buenos Aires
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Kyiv
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Frankfurt
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Buenos Aires'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Kyiv'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Frankfurt']
SELECT DISTINCT ?i WHERE { ?i property:sister_city ?k . VALUES ( ?k ) { ( resource:Kyiv ) ( resource:Buenos_Aires ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1486
P27
Q502895
USER
Who is a citizen of Buenos Aires ?
(c(Q502895),P27,Q1486)
action filter_type
action find_reverse
entity Q1486
relation P27
type Q502895
[{'concept': 'Q502895'}, 'P27', 'Q1486']
SELECT DISTINCT ?c WHERE { ?c property:P27 resource:Q1486 . ?c rdf:type ontology:Q502895 }
Buenos Aires
action filter_type
action find_reverse
entity Buenos Aires
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'Buenos Aires']
SELECT DISTINCT ?c WHERE { ?c property:country_of_citizenship resource:Buenos_Aires . ?c rdf:type ontology:common_name }
[]
common name
Q5186183
SYSTEM
Cristian Dzwonik
Q5186183
(c(Q502895),P27,Q1486)
action filter_type
action find_reverse
entity Q1486
relation P27
type Q502895
A citizen of Buenos Aires is born [ANSWER]
[{'concept': 'Q502895'}, 'P27', 'Q1486']
SELECT DISTINCT ?c WHERE { ?c property:P27 resource:Q1486 . ?c rdf:type ontology:Q502895 }
Cristian Dzwonik
A citizen of Buenos Aires is born Cristian Dzwonik
Cristian Dzwonik
action filter_type
action find_reverse
entity Buenos Aires
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'Buenos Aires']
SELECT DISTINCT ?c WHERE { ?c property:country_of_citizenship resource:Buenos_Aires . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5186183
P69
Q159334
USER
Which secondary school is that person an alumni of ?
(Q5186183,P69,c(Q159334))
action filter_type
action find
entity Q5186183
relation P69
type Q159334
['Q5186183', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?t WHERE { resource:Q5186183 property:P69 ?t . ?t rdf:type ontology:Q159334 }
Cristian Dzwonik
action filter_type
action find
entity Cristian Dzwonik
relation educated at
type secondary school
['Cristian Dzwonik', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?t WHERE { resource:Cristian_Dzwonik property:educated_at ?t . ?t rdf:type ontology:secondary_school }
[]
secondary school
Q5142861
SYSTEM
Colegio Nacional de Buenos Aires
Q5142861
(Q5186183,P69,c(Q159334))
action filter_type
action find
entity Q5186183
relation P69
type Q159334
[ANSWER] is that person an alumni of
['Q5186183', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?t WHERE { resource:Q5186183 property:P69 ?t . ?t rdf:type ontology:Q159334 }
Colegio Nacional de Buenos Aires
Colegio Nacional de Buenos Aires is that person an alumni of
Colegio Nacional de Buenos Aires
action filter_type
action find
entity Cristian Dzwonik
relation educated at
type secondary school
['Cristian Dzwonik', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?t WHERE { resource:Cristian_Dzwonik property:educated_at ?t . ?t rdf:type ontology:secondary_school }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q5142861 Q2926168
P17
Q15617994
USER
Is that secondary school located in Brooks End ?
(Q5142861,P17,Q2926168)
action is_in
entity Q2926168
action find
entity Q5142861
relation P17
['Q5142861', 'P17', 'Q2926168']
ASK WHERE { resource:Q5142861 property:P17 resource:Q2926168 }
Colegio Nacional de Buenos Aires Brooks End
action is_in
entity Brooks End
action find
entity Colegio Nacional de Buenos Aires
relation country
['Colegio Nacional de Buenos Aires', 'country', 'Brooks End']
ASK WHERE { resource:Colegio_Nacional_de_Buenos_Aires property:country resource:Brooks_End }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q5142861,P17,Q2926168)
action is_in
entity Q2926168
action find
entity Q5142861
relation P17
[ANSWER]
['Q5142861', 'P17', 'Q2926168']
ASK WHERE { resource:Q5142861 property:P17 resource:Q2926168 }
No
action is_in
entity Brooks End
action find
entity Colegio Nacional de Buenos Aires
relation country
['Colegio Nacional de Buenos Aires', 'country', 'Brooks End']
ASK WHERE { resource:Colegio_Nacional_de_Buenos_Aires property:country resource:Brooks_End }
[]