Simple Question (Direct)
Simple Question
Q3920257
P22
Q502895
USER
Which male person was the parent of Antoni Kazimierz Sapieha ?
(Q3920257,P22,c(Q502895))
action filter_type
action find
entity Q3920257
relation P22
type Q502895
['Q3920257', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q3920257 property:P22 ?j . ?j rdf:type ontology:Q502895 }
Antoni Kazimierz Sapieha
action filter_type
action find
entity Antoni Kazimierz Sapieha
relation father
type common name
['Antoni Kazimierz Sapieha', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Antoni_Kazimierz_Sapieha property:father ?j . ?j rdf:type ontology:common_name }
[]
common name
Q3646507
SYSTEM
Jerzy Stanisław Sapieha
Q3646507
(Q3920257,P22,c(Q502895))
action filter_type
action find
entity Q3920257
relation P22
type Q502895
[ANSWER] was the parent of Antoni Kazimierz Sapieha
['Q3920257', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q3920257 property:P22 ?j . ?j rdf:type ontology:Q502895 }
Jerzy Stanisław Sapieha
Jerzy Stanisław Sapieha was the parent of Antoni Kazimierz Sapieha
Jerzy Stanisław Sapieha
action filter_type
action find
entity Antoni Kazimierz Sapieha
relation father
type common name
['Antoni Kazimierz Sapieha', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Antoni_Kazimierz_Sapieha property:father ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3920257
P39
Q4164871
USER
What was a position held by Antoni Kazimierz Sapieha ?
(Q3920257,P39,c(Q4164871))
action filter_type
action find
entity Q3920257
relation P39
type Q4164871
['Q3920257', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?z WHERE { resource:Q3920257 property:P39 ?z . ?z rdf:type ontology:Q4164871 }
Antoni Kazimierz Sapieha
action filter_type
action find
entity Antoni Kazimierz Sapieha
relation position held
type position
['Antoni Kazimierz Sapieha', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?z WHERE { resource:Antoni_Kazimierz_Sapieha property:position_held ?z . ?z rdf:type ontology:position }
[]
position
Q2607541
SYSTEM
Voivode of Trakai
Q2607541
(Q3920257,P39,c(Q4164871))
action filter_type
action find
entity Q3920257
relation P39
type Q4164871
A position held by Antoni Kazimierz was the [ANSWER]
['Q3920257', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ?z WHERE { resource:Q3920257 property:P39 ?z . ?z rdf:type ontology:Q4164871 }
Voivode of Trakai
A position held by Antoni Kazimierz was the Voivode of Trakai
Voivode of Trakai
action filter_type
action find
entity Antoni Kazimierz Sapieha
relation position held
type position
['Antoni Kazimierz Sapieha', 'position held', {'concept': 'position'}]
SELECT DISTINCT ?z WHERE { resource:Antoni_Kazimierz_Sapieha property:position_held ?z . ?z rdf:type ontology:position }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3920257
P20
Q515
USER
Where did Antoni Kazimierz Sapieha expire ?
(Q3920257,P20,c(Q515))
action filter_type
action find
entity Q3920257
relation P20
type Q515
['Q3920257', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { resource:Q3920257 property:P20 ?p . ?p rdf:type ontology:Q515 }
Antoni Kazimierz Sapieha
action filter_type
action find
entity Antoni Kazimierz Sapieha
relation place of death
type city
['Antoni Kazimierz Sapieha', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { resource:Antoni_Kazimierz_Sapieha property:place_of_death ?p . ?p rdf:type ontology:city }
[]
city
Q1731
SYSTEM
Dresden
Q1731
(Q3920257,P20,c(Q515))
action filter_type
action find
entity Q3920257
relation P20
type Q515
Antoni Kazimierz Sapieha expired in [ANSWER]
['Q3920257', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { resource:Q3920257 property:P20 ?p . ?p rdf:type ontology:Q515 }
Dresden
Antoni Kazimierz Sapieha expired in Dresden
Dresden
action filter_type
action find
entity Antoni Kazimierz Sapieha
relation place of death
type city
['Antoni Kazimierz Sapieha', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { resource:Antoni_Kazimierz_Sapieha property:place_of_death ?p . ?p rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3920257
P40
Q502895
USER
Which person has Antoni Kazimierz Sapieha as an offspring ?
(c(Q502895),P40,Q3920257)
action filter_type
action find_reverse
entity Q3920257
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q3920257']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P40 resource:Q3920257 }
Antoni Kazimierz Sapieha
action filter_type
action find_reverse
entity Antoni Kazimierz Sapieha
relation child
type common name
[{'concept': 'common name'}, 'child', 'Antoni Kazimierz Sapieha']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:child resource:Antoni_Kazimierz_Sapieha }
[]
common name
Q3646507
SYSTEM
Jerzy Stanisław Sapieha
Q3646507
(c(Q502895),P40,Q3920257)
action filter_type
action find_reverse
entity Q3920257
relation P40
type Q502895
[ANSWER] has Antoni Kazimierz Sapieha as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q3920257']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P40 resource:Q3920257 }
Jerzy Stanisław Sapieha
Jerzy Stanisław Sapieha has Antoni Kazimierz Sapieha as an offspring
Jerzy Stanisław Sapieha
action filter_type
action find_reverse
entity Antoni Kazimierz Sapieha
relation child
type common name
[{'concept': 'common name'}, 'child', 'Antoni Kazimierz Sapieha']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:child resource:Antoni_Kazimierz_Sapieha }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3646507
P611
Q1530022
USER
What religion is that person affiliated to ?
(Q3646507,P611,c(Q1530022))
action filter_type
action find
entity Q3646507
relation P611
type Q1530022
['Q3646507', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?g WHERE { resource:Q3646507 property:P611 ?g . ?g rdf:type ontology:Q1530022 }
Jerzy Stanisław Sapieha
action filter_type
action find
entity Jerzy Stanisław Sapieha
relation religious order
type religious organization
['Jerzy Stanisław Sapieha', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?g WHERE { resource:Jerzy_Stanisław_Sapieha property:religious_order ?g . ?g rdf:type ontology:religious_organization }
[]
religious organization
Q36380
SYSTEM
Society of Jesus
Q36380
(Q3646507,P611,c(Q1530022))
action filter_type
action find
entity Q3646507
relation P611
type Q1530022
That person is affiliated to [ANSWER]
['Q3646507', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?g WHERE { resource:Q3646507 property:P611 ?g . ?g rdf:type ontology:Q1530022 }
Society of Jesus
That person is affiliated to Society of Jesus
Society of Jesus
action filter_type
action find
entity Jerzy Stanisław Sapieha
relation religious order
type religious organization
['Jerzy Stanisław Sapieha', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?g WHERE { resource:Jerzy_Stanisław_Sapieha property:religious_order ?g . ?g rdf:type ontology:religious_organization }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q56061 Q13220204 Q515
USER
Which cities are sister town of max number of administrative territories or administrative country subdivisions ?
(c(Q515),P190,c(Q56061)|c(Q13220204))
action argmax
action union
action find_tuple_counts
relation P190
type Q515
type Q56061
action find_tuple_counts
relation P190
type Q515
type Q13220204
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q56061'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?o ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } } GROUP BY ?n } } . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?w ) WHERE { { ?p property:P190 ?x . ?p rdf:type ontology:Q515 . ?x rdf:type ontology:Q56061 } UNION { ?p property:P190 ?x . ?p rdf:type ontology:Q515 . ?x rdf:type ontology:Q13220204 } } GROUP BY ?p } . FILTER ( ?w = ?s ) }
action argmax
action union
action find_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_tuple_counts
relation sister city
type city
type second-level administrative country subdivision
[{'concept': 'city'}, 'sister city', [{'concept': 'administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?o ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?n } } . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?w ) WHERE { { ?p property:sister_city ?x . ?p rdf:type ontology:city . ?x rdf:type ontology:administrative_territorial_entity } UNION { ?p property:sister_city ?x . ?p rdf:type ontology:city . ?x rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?p } . FILTER ( ?w = ?s ) }
[]
administrative territorial entity second-level administrative country subdivision city
Q1486
SYSTEM
Buenos Aires
Q1486
(c(Q515),P190,c(Q56061)|c(Q13220204))
action argmax
action union
action find_tuple_counts
relation P190
type Q515
type Q56061
action find_tuple_counts
relation P190
type Q515
type Q13220204
[ANSWER] is sister town of max number of administrative territories or administrative country subdivisions
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q56061'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?o ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } } GROUP BY ?n } } . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?w ) WHERE { { ?p property:P190 ?x . ?p rdf:type ontology:Q515 . ?x rdf:type ontology:Q56061 } UNION { ?p property:P190 ?x . ?p rdf:type ontology:Q515 . ?x rdf:type ontology:Q13220204 } } GROUP BY ?p } . FILTER ( ?w = ?s ) }
Buenos Aires
Buenos Aires is sister town of max number of administrative territories or administrative country subdivisions
Buenos Aires
action argmax
action union
action find_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_tuple_counts
relation sister city
type city
type second-level administrative country subdivision
[{'concept': 'city'}, 'sister city', [{'concept': 'administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?s ) { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?o ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?n } } . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?w ) WHERE { { ?p property:sister_city ?x . ?p rdf:type ontology:city . ?x rdf:type ontology:administrative_territorial_entity } UNION { ?p property:sister_city ?x . ?p rdf:type ontology:city . ?x rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?p } . FILTER ( ?w = ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P163
Q17335294 Q14660 Q515
USER
How many cities are associated with around the same number of coats of arms or flags as that city ?
(c(Q515),P163,c(Q17335294)|c(Q14660))
action count
action approx
action union
action find_tuple_counts
relation P163
type Q515
type Q17335294
action find_tuple_counts
relation P163
type Q515
type Q14660
action count
action filter_multi_types
action find
entity Q1486
relation P163
type Q17335294
type Q14660
[{'concept': 'Q515'}, 'P163', [{'concept': 'Q17335294'}, {'concept': 'Q14660'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?d WHERE { ?w rdf:type ?u . VALUES ( ?u ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } } GROUP BY ?d } . FILTER ( ?z = ?a ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Q1486 property:P163 ?o . { VALUES ( ?t ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } . ?o rdf:type ?t } } } }
action count
action approx
action union
action find_tuple_counts
relation flag
type city
type flag or coat of arms
action find_tuple_counts
relation flag
type city
type flag
action count
action filter_multi_types
action find
entity Buenos Aires
relation flag
type flag or coat of arms
type flag
[{'concept': 'city'}, 'flag', [{'concept': 'flag or coat of arms'}, {'concept': 'flag'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?d WHERE { ?w rdf:type ?u . VALUES ( ?u ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } } GROUP BY ?d } . FILTER ( ?z = ?a ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Buenos_Aires property:flag ?o . { VALUES ( ?t ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } . ?o rdf:type ?t } } } }
[]
flag or coat of arms flag city
SYSTEM
14
Q43196 Q1410 Q612815 Q19689 Q235 Q1953 Q1209 Q1865 Q23768 Q3926 Q1486 Q1773 Q157835 Q2135
(c(Q515),P163,c(Q17335294)|c(Q14660))
action count
action approx
action union
action find_tuple_counts
relation P163
type Q515
type Q17335294
action find_tuple_counts
relation P163
type Q515
type Q14660
action count
action filter_multi_types
action find
entity Q1486
relation P163
type Q17335294
type Q14660
[ANSWER]
[{'concept': 'Q515'}, 'P163', [{'concept': 'Q17335294'}, {'concept': 'Q14660'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?d WHERE { ?w rdf:type ?u . VALUES ( ?u ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } } GROUP BY ?d } . FILTER ( ?z = ?a ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Q1486 property:P163 ?o . { VALUES ( ?t ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } . ?o rdf:type ?t } } } }
Cincinnati Gibraltar Garachico Tirana Monaco Yerevan Free Hanseatic City of Bremen Kuala Lumpur Las Vegas Pretoria Buenos Aires Riga Zaporizhzhya Winnipeg
14
action count
action approx
action union
action find_tuple_counts
relation flag
type city
type flag or coat of arms
action find_tuple_counts
relation flag
type city
type flag
action count
action filter_multi_types
action find
entity Buenos Aires
relation flag
type flag or coat of arms
type flag
[{'concept': 'city'}, 'flag', [{'concept': 'flag or coat of arms'}, {'concept': 'flag'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?d WHERE { ?w rdf:type ?u . VALUES ( ?u ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } } GROUP BY ?d } . FILTER ( ?z = ?a ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { resource:Buenos_Aires property:flag ?o . { VALUES ( ?t ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } . ?o rdf:type ?t } } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q515 Q1048835
USER
Which political territories are a sister city of around 2 cities ?
(c(Q1048835),P190,c(Q515))
action approx
action find_tuple_counts
relation P190
type Q1048835
type Q515
value 2
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?z ) WHERE { ?a rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q515 . ?a property:P190 ?y } GROUP BY ?a } . FILTER ( ?z = 2 ) }
action approx
action find_tuple_counts
relation sister city
type political territorial entity
type city
value 2
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?z ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:city . ?a property:sister_city ?y } GROUP BY ?a } . FILTER ( ?z = 2 ) }
[]
city political territorial entity
Q11746 Q74881 Q92161
SYSTEM
Wuhan, Dalian, Changchun
Q842713 Q168376 Q11746 Q170247 Q92161 Q74881 Q192387
(c(Q1048835),P190,c(Q515))
action approx
action find_tuple_counts
relation P190
type Q1048835
type Q515
value 2
[ANSWERS] are a sister city of around 2 cities
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?z ) WHERE { ?a rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q515 . ?a property:P190 ?y } GROUP BY ?a } . FILTER ( ?z = 2 ) }
Itajaí Vitória Wuhan Jinan Changchun Dalian Londrina
Wuhan, Dalian and Changchun are a sister city of around 2 cities
Wuhan Dalian Changchun
action approx
action find_tuple_counts
relation sister city
type political territorial entity
type city
value 2
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?z ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:city . ?a property:sister_city ?y } GROUP BY ?a } . FILTER ( ?z = 2 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q11746 Q74881 Q92161
P17
Q15617994
USER
Which administrative territories are those political territories a part of ?
(Q11746,P17,c(Q15617994)) (Q74881,P17,c(Q15617994)) (Q92161,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q11746', 'P17', {'concept': 'Q15617994'}] ['Q74881', 'P17', {'concept': 'Q15617994'}] ['Q92161', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?k ) { ( resource:Q842713 ) ( resource:Q168376 ) ( resource:Q11746 ) } . ?k property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Wuhan Dalian Changchun
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Wuhan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Dalian', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Changchun', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?k ) { ( resource:Itajaí ) ( resource:Vitória ) ( resource:Wuhan ) } . ?k property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q148 Q148
SYSTEM
People's Republic of China
Q148 Q148 Q17 Q148
(Q11746,P17,c(Q15617994)) (Q74881,P17,c(Q15617994)) (Q92161,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] are those political territories a part of
['Q11746', 'P17', {'concept': 'Q15617994'}] ['Q74881', 'P17', {'concept': 'Q15617994'}] ['Q92161', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?k ) { ( resource:Q842713 ) ( resource:Q168376 ) ( resource:Q11746 ) } . ?k property:P17 ?x . ?x rdf:type ontology:Q15617994 }
People's Republic of China People's Republic of China Japan People's Republic of China
People's Republic of China, People's Republic of China and People's Republic of China are those political territories a part of
People's Republic of China People's Republic of China People's Republic of China
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Wuhan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Dalian', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Changchun', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { VALUES ( ?k ) { ( resource:Itajaí ) ( resource:Vitória ) ( resource:Wuhan ) } . ?k property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q11746
Q5119
USER
And which capital?
(Q11746,P190,c(Q5119))
action filter_type
action find
entity Q11746
relation P190
type Q5119
['Q11746', 'P190', {'concept': 'Q5119'}]
SELECT DISTINCT ?v WHERE { resource:Q11746 property:P190 ?v . ?v rdf:type ontology:Q5119 }
Wuhan
action filter_type
action find
entity Wuhan
relation sister city
type capital
['Wuhan', 'sister city', {'concept': 'capital'}]
SELECT DISTINCT ?v WHERE { resource:Wuhan property:sister_city ?v . ?v rdf:type ontology:capital }
[]
capital
Q1342
SYSTEM
Pittsburgh
Q1342
(Q11746,P190,c(Q5119))
action filter_type
action find
entity Q11746
relation P190
type Q5119
[ANSWER]
['Q11746', 'P190', {'concept': 'Q5119'}]
SELECT DISTINCT ?v WHERE { resource:Q11746 property:P190 ?v . ?v rdf:type ontology:Q5119 }
Pittsburgh
Pittsburgh
action filter_type
action find
entity Wuhan
relation sister city
type capital
['Wuhan', 'sister city', {'concept': 'capital'}]
SELECT DISTINCT ?v WHERE { resource:Wuhan property:sister_city ?v . ?v rdf:type ontology:capital }
[]