Simple Question (Direct)
Simple Question
Q285508
P9
Q502895
USER
Who is Ivan Asen III of Bulgaria a sibling of ?
(Q285508,P9,c(Q502895))
action filter_type
action find
entity Q285508
relation P9
type Q502895
['Q285508', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q285508 property:P9 ?o . ?o rdf:type ontology:Q502895 }
Ivan Asen III of Bulgaria
action filter_type
action find
entity Ivan Asen III of Bulgaria
relation sister
type common name
['Ivan Asen III of Bulgaria', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Ivan_Asen_III_of_Bulgaria property:sister ?o . ?o rdf:type ontology:common_name }
[]
common name
Q574542
SYSTEM
Kira Maria Asenina of Bulgaria
Q574542
(Q285508,P9,c(Q502895))
action filter_type
action find
entity Q285508
relation P9
type Q502895
Ivan Asen III of Bulgaria a sibling of is later [ANSWER]
['Q285508', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q285508 property:P9 ?o . ?o rdf:type ontology:Q502895 }
Kira Maria Asenina of Bulgaria
Ivan Asen III of Bulgaria a sibling of is later Kira Maria Asenina of Bulgaria
Kira Maria Asenina of Bulgaria
action filter_type
action find
entity Ivan Asen III of Bulgaria
relation sister
type common name
['Ivan Asen III of Bulgaria', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Ivan_Asen_III_of_Bulgaria property:sister ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q574542
P26
Q502895
USER
Who is married to that one ?
(Q574542,P26,c(Q502895))
action filter_type
action find
entity Q574542
relation P26
type Q502895
['Q574542', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q574542 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Kira Maria Asenina of Bulgaria
action filter_type
action find
entity Kira Maria Asenina of Bulgaria
relation spouse
type common name
['Kira Maria Asenina of Bulgaria', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Kira_Maria_Asenina_of_Bulgaria property:spouse ?t . ?t rdf:type ontology:common_name }
[]
common name
Q715297
SYSTEM
George I of Bulgaria
Q715297
(Q574542,P26,c(Q502895))
action filter_type
action find
entity Q574542
relation P26
type Q502895
[ANSWER] is married to that one
['Q574542', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q574542 property:P26 ?t . ?t rdf:type ontology:Q502895 }
George I of Bulgaria
George I of Bulgaria is married to that one
George I of Bulgaria
action filter_type
action find
entity Kira Maria Asenina of Bulgaria
relation spouse
type common name
['Kira Maria Asenina of Bulgaria', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Kira_Maria_Asenina_of_Bulgaria property:spouse ?t . ?t rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q129090 Q574542
P40
Q502895
USER
Which people are a successors of Kira Maria Asenina of Bulgaria or Silvestro Aldobrandini ?
OR((Q574542,P40,c(Q502895)), (Q129090,P40,c(Q502895)))
action filter_type
action union
action find
entity Q574542
relation P40
action find
entity Q129090
relation P40
type Q502895
{'OR': [['Q574542', 'P40', {'concept': 'Q502895'}], ['Q129090', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q129090 property:P40 ?c } UNION { resource:Q574542 property:P40 ?c } } . ?c rdf:type ontology:Q502895 }
Silvestro Aldobrandini Kira Maria Asenina of Bulgaria
action filter_type
action union
action find
entity Kira Maria Asenina of Bulgaria
relation child
action find
entity Silvestro Aldobrandini
relation child
type common name
{'OR': [['Kira Maria Asenina of Bulgaria', 'child', {'concept': 'common name'}], ['Silvestro Aldobrandini', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Silvestro_Aldobrandini property:child ?c } UNION { resource:Kira_Maria_Asenina_of_Bulgaria property:child ?c } } . ?c rdf:type ontology:common_name }
[]
common name
Q129064 Q574544 Q170395
SYSTEM
Giovanni Aldobrandini, Ana Terter, Clement VIII
Q129064 Q574544 Q170395
OR((Q574542,P40,c(Q502895)), (Q129090,P40,c(Q502895)))
action filter_type
action union
action find
entity Q574542
relation P40
action find
entity Q129090
relation P40
type Q502895
[ANSWERS] are a successors of Kira Maria Asenina of Bulgaria or Silvestro Aldobrandini
{'OR': [['Q574542', 'P40', {'concept': 'Q502895'}], ['Q129090', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q129090 property:P40 ?c } UNION { resource:Q574542 property:P40 ?c } } . ?c rdf:type ontology:Q502895 }
Giovanni Aldobrandini Ana Terter Clement VIII
Giovanni Aldobrandini, Ana Terter and Clement VIII are a successors of Kira Maria Asenina of Bulgaria or Silvestro Aldobrandini
Giovanni Aldobrandini Ana Terter Clement VIII
action filter_type
action union
action find
entity Kira Maria Asenina of Bulgaria
relation child
action find
entity Silvestro Aldobrandini
relation child
type common name
{'OR': [['Kira Maria Asenina of Bulgaria', 'child', {'concept': 'common name'}], ['Silvestro Aldobrandini', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Silvestro_Aldobrandini property:child ?c } UNION { resource:Kira_Maria_Asenina_of_Bulgaria property:child ?c } } . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q2342494
USER
Which collectables did atleast 1 person do the dubbing for ?
(c(Q2342494),P725,c(Q502895))
action atleast
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 1
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?v ) WHERE { ?y property:P725 ?o . ?y rdf:type ontology:Q2342494 . ?o rdf:type ontology:Q502895 } GROUP BY ?y } . FILTER ( ?v >= 1 ) }
action atleast
action find_tuple_counts
relation voice actor
type collectable
type common name
value 1
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?v ) WHERE { ?y property:voice_actor ?o . ?y rdf:type ontology:collectable . ?o rdf:type ontology:common_name } GROUP BY ?y } . FILTER ( ?v >= 1 ) }
[]
common name collectable
Q482870 Q119534 Q483263
SYSTEM
Boku wa Tomodachi ga Sukunai, Shakugan no Shana, Baka and Test
Q50035 Q483263 Q495094 Q482870 Q336056 Q1204015 Q304061 Q11272884 Q11325839 Q119534 Q184667 Q485958 Q53351 Q5647726 Q2759489
(c(Q2342494),P725,c(Q502895))
action atleast
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 1
[ANSWERS] atleast 1 person did the dubbing for
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?v ) WHERE { ?y property:P725 ?o . ?y rdf:type ontology:Q2342494 . ?o rdf:type ontology:Q502895 } GROUP BY ?y } . FILTER ( ?v >= 1 ) }
Nyaruko: Crawling with Love Baka and Test Durarara!! Boku wa Tomodachi ga Sukunai The Girl Who Leapt Through Time Ōkami Kakushi Kyo Kara Maoh! Toaru Hikūshi e no Koiuta No Game No Life-mart Shakugan no Shana Kanojo ga Flag o Oraretara Ro-Kyu-Bu! Accel World Handy Manny's Motorcycle Adventure Muv-Luv
Boku wa Tomodachi ga Sukunai, Shakugan no Shana and Baka and Test atleast 1 person did the dubbing for
Boku wa Tomodachi ga Sukunai Shakugan no Shana Baka and Test
action atleast
action find_tuple_counts
relation voice actor
type collectable
type common name
value 1
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?v ) WHERE { ?y property:voice_actor ?o . ?y rdf:type ontology:collectable . ?o rdf:type ontology:common_name } GROUP BY ?y } . FILTER ( ?v >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4395455 Q715297
P27
Q15617994
USER
Which administrative territories are the native countriesof George I of Bulgaria or Boris Roginsky ?
OR((Q715297,P27,c(Q15617994)), (Q4395455,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q715297
relation P27
action find
entity Q4395455
relation P27
type Q15617994
{'OR': [['Q715297', 'P27', {'concept': 'Q15617994'}], ['Q4395455', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?x ) { ( resource:Q715297 ) ( resource:Q4395455 ) } . ?x property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Boris Roginsky George I of Bulgaria
action filter_type
action union
action find
entity George I of Bulgaria
relation country of citizenship
action find
entity Boris Roginsky
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['George I of Bulgaria', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Boris Roginsky', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?x ) { ( resource:George_I_of_Bulgaria ) ( resource:Boris_Roginsky ) } . ?x property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q219 Q159
SYSTEM
Bulgaria, Russia
Q219 Q159
OR((Q715297,P27,c(Q15617994)), (Q4395455,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q715297
relation P27
action find
entity Q4395455
relation P27
type Q15617994
[ANSWERS] are the native countriesof George I of Bulgaria or Boris Roginsky
{'OR': [['Q715297', 'P27', {'concept': 'Q15617994'}], ['Q4395455', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?x ) { ( resource:Q715297 ) ( resource:Q4395455 ) } . ?x property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Bulgaria Russia
Bulgaria and Russia are the native countriesof George I of Bulgaria or Boris Roginsky
Bulgaria Russia
action filter_type
action union
action find
entity George I of Bulgaria
relation country of citizenship
action find
entity Boris Roginsky
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['George I of Bulgaria', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Boris Roginsky', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?x ) { ( resource:George_I_of_Bulgaria ) ( resource:Boris_Roginsky ) } . ?x property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q219 Q159
P36
Q56061
USER
Which administrative territories are called the capital of those administrative territories ?
(Q219,P36,c(Q56061)) (Q159,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
['Q219', 'P36', {'concept': 'Q56061'}] ['Q159', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?v ) { ( resource:Q219 ) ( resource:Q159 ) } . ?v property:P36 ?h . ?h rdf:type ontology:Q56061 }
Bulgaria Russia
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['Bulgaria', 'capital', {'concept': 'administrative territorial entity'}] ['Russia', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?v ) { ( resource:Bulgaria ) ( resource:Russia ) } . ?v property:capital ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q472 Q649
SYSTEM
Sofia, Moscow
Q472 Q649
(Q219,P36,c(Q56061)) (Q159,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
[ANSWERS] are called the capital of those administrative territories
['Q219', 'P36', {'concept': 'Q56061'}] ['Q159', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?v ) { ( resource:Q219 ) ( resource:Q159 ) } . ?v property:P36 ?h . ?h rdf:type ontology:Q56061 }
Sofia Moscow
Sofia and Moscow are called the capital of those administrative territories
Sofia Moscow
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['Bulgaria', 'capital', {'concept': 'administrative territorial entity'}] ['Russia', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?v ) { ( resource:Bulgaria ) ( resource:Russia ) } . ?v property:capital ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q649
P159
Q7210356
USER
Which political organizations have the principal seat at that administrative territory ?
(c(Q7210356),P159,Q649)
action filter_type
action find_reverse
entity Q649
relation P159
type Q7210356
[{'concept': 'Q7210356'}, 'P159', 'Q649']
SELECT DISTINCT ?q WHERE { ?q property:P159 resource:Q649 . ?q rdf:type ontology:Q7210356 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Moscow']
SELECT DISTINCT ?q WHERE { ?q property:headquarters_location resource:Moscow . ?q rdf:type ontology:political_organization }
[]
political organization
Clarification for simple ques.
Q649
SYSTEM
Did you mean Moscow ?
Q472 Q649
(c(Q7210356),P159,Q472) (c(Q7210356),P159,Q649)
[ANSWER]
[{'concept': 'Q7210356'}, 'P159', 'Q472'] [{'concept': 'Q7210356'}, 'P159', 'Q649']
SELECT DISTINCT ?q WHERE { ?q property:P159 resource:Q649 . ?q rdf:type ontology:Q7210356 }
Sofia Moscow
Did you mean Moscow ?
Moscow
[{'concept': 'political organization'}, 'headquarters location', 'Sofia'] [{'concept': 'political organization'}, 'headquarters location', 'Moscow']
SELECT DISTINCT ?q WHERE { ?q property:headquarters_location resource:Moscow . ?q rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q7210356),P159,Q649)
[{'concept': 'Q7210356'}, 'P159', 'Q649']
[{'concept': 'political organization'}, 'headquarters location', 'Moscow']
[]
Q1470302 Q2256403 Q4157656
SYSTEM
People's Freedom Party "For Russia without Lawlessness and Corruption", Left Front, Democratic Union
Q321022 Q2070568 Q4313240 Q2386921 Q7382124 Q1314890 Q4400494 Q166073 Q730786 Q4397989 Q2362813 Q2256403 Q2372144 Q2394353 Q3267854 Q1975636 Q7767510 Q4430198 Q6016537 Q4346000 Q714860 Q4391775 Q1958474 Q4398257 Q4397994 Q1862986 Q4157656 Q4229911 Q4229917 Q1470302 Q1561318 Q4231861 Q163931
(c(Q7210356),P159,Q649)
action filter_type
action find_reverse
entity Q649
relation P159
type Q7210356
[ANSWERS] have the principal seat at that administrative territory
[{'concept': 'Q7210356'}, 'P159', 'Q649']
SELECT DISTINCT ?q WHERE { ?q property:P159 resource:Q649 . ?q rdf:type ontology:Q7210356 }
National Bolshevik Party The Other Russia People's National Party Socialist League Vpered Russian Section of the Committee for a Workers' International Union of Communist Parties – Communist Party of the Soviet Union Russian Monarchist Union Komsomol All-Russia People's Front Russian Party of Communists People's Union Left Front Social Democratic Party of Russia Great Russia (party) Union of Social Democrats Revolutionary Communist Youth League Progress Party United Socialist Party of Russia Independent Democratic Party of Russia Beer Lovers Party Russian National Unity Workers Revolutionary Party (Russia) Fatherland – All Russia Russian Socialist Movement Russian Party of Social Democracy Leninist Komsomol of the Russian Federation Democratic Union Communist Party of the Soviet Union Communist Party of Social Justice People's Freedom Party "For Russia without Lawlessness and Corruption" Russian People's Democratic Union Conceptual Party Unity Comintern
People's Freedom Party "For Russia without Lawlessness and Corruption", Left Front and Democratic Union have the principal seat at that administrative territory
People's Freedom Party "For Russia without Lawlessness and Corruption" Left Front Democratic Union
action filter_type
action find_reverse
entity Moscow
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Moscow']
SELECT DISTINCT ?q WHERE { ?q property:headquarters_location resource:Moscow . ?q rdf:type ontology:political_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2256403
P102
Q502895
USER
Who belong to the political party that one ?
(c(Q502895),P102,Q2256403)
action filter_type
action find_reverse
entity Q2256403
relation P102
type Q502895
[{'concept': 'Q502895'}, 'P102', 'Q2256403']
SELECT DISTINCT ?w WHERE { ?w property:P102 resource:Q2256403 . ?w rdf:type ontology:Q502895 }
Left Front
action filter_type
action find_reverse
entity Left Front
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Left Front']
SELECT DISTINCT ?w WHERE { ?w property:member_of_political_party resource:Left_Front . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q2256403
SYSTEM
Did you mean Left Front ?
Q1470302 Q2256403 Q4157656
(c(Q502895),P102,Q1470302) (c(Q502895),P102,Q2256403) (c(Q502895),P102,Q4157656)
[ANSWER]
[{'concept': 'Q502895'}, 'P102', 'Q1470302'] [{'concept': 'Q502895'}, 'P102', 'Q2256403'] [{'concept': 'Q502895'}, 'P102', 'Q4157656']
SELECT DISTINCT ?w WHERE { ?w property:P102 resource:Q2256403 . ?w rdf:type ontology:Q502895 }
People's Freedom Party "For Russia without Lawlessness and Corruption" Left Front Democratic Union
Did you mean Left Front ?
Left Front
[{'concept': 'common name'}, 'member of political party', 'People\'s Freedom Party "For Russia without Lawlessness and Corruption"'] [{'concept': 'common name'}, 'member of political party', 'Left Front'] [{'concept': 'common name'}, 'member of political party', 'Democratic Union']
SELECT DISTINCT ?w WHERE { ?w property:member_of_political_party resource:Left_Front . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P102,Q2256403)
[{'concept': 'Q502895'}, 'P102', 'Q2256403']
[{'concept': 'common name'}, 'member of political party', 'Left Front']
[]
Q3291 Q4371978 Q713923
SYSTEM
Leonid Razvozzhayev, Ilya Ponomarev, Sergei Udaltsov
Q3291 Q4371978 Q713923
(c(Q502895),P102,Q2256403)
action filter_type
action find_reverse
entity Q2256403
relation P102
type Q502895
[ANSWERS] belong to the political party that one
[{'concept': 'Q502895'}, 'P102', 'Q2256403']
SELECT DISTINCT ?w WHERE { ?w property:P102 resource:Q2256403 . ?w rdf:type ontology:Q502895 }
Leonid Razvozzhayev Ilya Ponomarev Sergei Udaltsov
Leonid Razvozzhayev, Ilya Ponomarev and Sergei Udaltsov belong to the political party that one
Leonid Razvozzhayev Ilya Ponomarev Sergei Udaltsov
action filter_type
action find_reverse
entity Left Front
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Left Front']
SELECT DISTINCT ?w WHERE { ?w property:member_of_political_party resource:Left_Front . ?w rdf:type ontology:common_name }
[]