Simple Question (Direct)
Simple Question
Q41608
P22
Q502895
USER
Which male person has a child named Constantine VII ?
(Q41608,P22,c(Q502895))
action filter_type
action find
entity Q41608
relation P22
type Q502895
['Q41608', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q41608 property:P22 ?l . ?l rdf:type ontology:Q502895 }
Constantine VII
action filter_type
action find
entity Constantine VII
relation father
type common name
['Constantine VII', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Constantine_VII property:father ?l . ?l rdf:type ontology:common_name }
[]
common name
Q41618
SYSTEM
Leo VI the Wise
Q41618
(Q41608,P22,c(Q502895))
action filter_type
action find
entity Q41608
relation P22
type Q502895
[ANSWER] has a child named Constantine VII
['Q41608', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q41608 property:P22 ?l . ?l rdf:type ontology:Q502895 }
Leo VI the Wise
Leo VI the Wise has a child named Constantine VII
Leo VI the Wise
action filter_type
action find
entity Constantine VII
relation father
type common name
['Constantine VII', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Constantine_VII property:father ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q41608
P26
Q502895
USER
Which person is the life partner of Constantine VII ?
(Q41608,P26,c(Q502895))
action filter_type
action find
entity Q41608
relation P26
type Q502895
['Q41608', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q41608 property:P26 ?n . ?n rdf:type ontology:Q502895 }
Constantine VII
action filter_type
action find
entity Constantine VII
relation spouse
type common name
['Constantine VII', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Constantine_VII property:spouse ?n . ?n rdf:type ontology:common_name }
[]
common name
Q2631107
SYSTEM
Helena Lekapene
Q2631107
(Q41608,P26,c(Q502895))
action filter_type
action find
entity Q41608
relation P26
type Q502895
[ANSWER] is the life partner of Constantine VII
['Q41608', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q41608 property:P26 ?n . ?n rdf:type ontology:Q502895 }
Helena Lekapene
Helena Lekapene is the life partner of Constantine VII
Helena Lekapene
action filter_type
action find
entity Constantine VII
relation spouse
type common name
['Constantine VII', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Constantine_VII property:spouse ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q24663998
Q502895
USER
And what about Grethe Eilertsen?
(Q24663998,P26,c(Q502895))
action filter_type
action find
entity Q24663998
relation P26
type Q502895
['Q24663998', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . resource:Q24663998 property:P26 ?c }
Grethe Eilertsen
action filter_type
action find
entity Grethe Eilertsen
relation spouse
type common name
['Grethe Eilertsen', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . resource:Grethe_Eilertsen property:spouse ?c }
[]
common name
Q5530165
SYSTEM
Geir Barvik
Q5530165
(Q24663998,P26,c(Q502895))
action filter_type
action find
entity Q24663998
relation P26
type Q502895
[ANSWER]
['Q24663998', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . resource:Q24663998 property:P26 ?c }
Geir Barvik
Geir Barvik
action filter_type
action find
entity Grethe Eilertsen
relation spouse
type common name
['Grethe Eilertsen', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . resource:Grethe_Eilertsen property:spouse ?c }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q24663998 Q93190
P26
Q502895
USER
How many people are the spouse of Grethe Eilertsen or divorce ?
(c(Q502895),P26,Q24663998) (c(Q502895),P26,Q93190)
action count
action union
action filter_type
action find_reverse
entity Q24663998
relation P26
type Q502895
action filter_type
action find_reverse
entity Q93190
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q24663998'] [{'concept': 'Q502895'}, 'P26', 'Q93190']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { ?d property:P26 resource:Q24663998 . ?d rdf:type ontology:Q502895 } UNION { ?d rdf:type ontology:Q502895 . ?d property:P26 resource:Q93190 } }
Grethe Eilertsen divorce
action count
action union
action filter_type
action find_reverse
entity Grethe Eilertsen
relation spouse
type common name
action filter_type
action find_reverse
entity divorce
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Grethe Eilertsen'] [{'concept': 'common name'}, 'spouse', 'divorce']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { ?d property:spouse resource:Grethe_Eilertsen . ?d rdf:type ontology:common_name } UNION { ?d rdf:type ontology:common_name . ?d property:spouse resource:divorce } }
[]
common name
SYSTEM
15
Q16195820 Q6391643 Q5530165 Q6506312 Q7384347 Q13479279 Q6735322 Q7281926 Q7327838 Q7498783 Q7441536 Q6551483 Q5200131 Q13562306 Q16193974
(c(Q502895),P26,Q24663998) (c(Q502895),P26,Q93190)
action count
action union
action filter_type
action find_reverse
entity Q24663998
relation P26
type Q502895
action filter_type
action find_reverse
entity Q93190
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q24663998'] [{'concept': 'Q502895'}, 'P26', 'Q93190']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { ?d property:P26 resource:Q24663998 . ?d rdf:type ontology:Q502895 } UNION { ?d rdf:type ontology:Q502895 . ?d property:P26 resource:Q93190 } }
David Sypolt Kent Caperton Geir Barvik LeAnna Washington Ryan Mishler Vince Fumo Maida Coleman Rae Lynn Job Richard Miranda Shirley Kitchen Sean Wiley Linda Coleman Cynthia Nava Karen Tallian Bruce Bryant
15
action count
action union
action filter_type
action find_reverse
entity Grethe Eilertsen
relation spouse
type common name
action filter_type
action find_reverse
entity divorce
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Grethe Eilertsen'] [{'concept': 'common name'}, 'spouse', 'divorce']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { { ?d property:spouse resource:Grethe_Eilertsen . ?d rdf:type ontology:common_name } UNION { ?d rdf:type ontology:common_name . ?d property:spouse resource:divorce } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1621656
P725
Q502895 Q95074
USER
How many fictional characters had approximately the same number of people as the dubbing artist as Solid Snake ?
(c(Q95074),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q1621656
relation P725
type Q95074
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?l ) WHERE { ?u property:P725 ?n . ?u rdf:type ontology:Q95074 . ?n rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:Q95074 . resource:Q1621656 property:P725 ?d } } . FILTER ( ?l = ?q ) }
Solid Snake
action count
action approx
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Solid Snake
relation voice actor
type fictional character
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?l ) WHERE { ?u property:voice_actor ?n . ?u rdf:type ontology:fictional_character . ?n rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:fictional_character . resource:Solid_Snake property:voice_actor ?d } } . FILTER ( ?l = ?q ) }
[]
common name fictional character
SYSTEM
17
Q16027672 Q21837832 Q21847115 Q15710873 Q21847074 Q21837038 Q2570349 Q21847089 Q21847086 Q17349786 Q21847215 Q21837905 Q1621656 Q2544561 Q1984009 Q21847105 Q21847103
(c(Q95074),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q1621656
relation P725
type Q95074
[ANSWER]
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?l ) WHERE { ?u property:P725 ?n . ?u rdf:type ontology:Q95074 . ?n rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:Q95074 . resource:Q1621656 property:P725 ?d } } . FILTER ( ?l = ?q ) }
Dr. Stewart Kyōichi Sudō Fumihiro Princess Celestia Kōichirō Iketani Keisuke Takahashi Spike Spiegel Kenji Natsuki Mogi Shulk Seiji Iwaki Itsuki Takeuchi Solid Snake Ike Death Kenta Nakamura Shingo Shōji
17
action count
action approx
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Solid Snake
relation voice actor
type fictional character
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?l ) WHERE { ?u property:voice_actor ?n . ?u rdf:type ontology:fictional_character . ?n rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:fictional_character . resource:Solid_Snake property:voice_actor ?d } } . FILTER ( ?l = ?q ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q17195038 Q1621656
P161 P725
Q502895
USER
Which people worked on the dubbing for Solid Snake or starred in Saint Hans' Celebration ?
OR((Q1621656,P725,c(Q502895)), (Q17195038,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1621656
relation P725
action find
entity Q17195038
relation P161
type Q502895
{'OR': [['Q1621656', 'P725', {'concept': 'Q502895'}], ['Q17195038', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . { { resource:Q1621656 property:P725 ?w } UNION { resource:Q17195038 property:P161 ?w } } }
Saint Hans' Celebration Solid Snake
action filter_type
action union
action find
entity Solid Snake
relation voice actor
action find
entity Saint Hans' Celebration
relation cast member
type common name
{'OR': [['Solid Snake', 'voice actor', {'concept': 'common name'}], ["Saint Hans' Celebration", 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . { { resource:Solid_Snake property:voice_actor ?w } UNION { resource:Saint_Hans'_Celebration property:cast_member ?w } } }
[]
common name
Q4953253 Q16658336 Q418649 Q4251556 Q11968915 Q543738 Q1770193 Q5972223 Q7825629 Q4971511
SYSTEM
Some of them are Else-Merete Heiberg, Helge Essmar, Akio Ōtsuka, Ulf Selmer, Finn Mehlum, Aud Schønemann, Egil Hjorth-Jenssen, Sigurd Magnussøn, Tore Foss, Sigrun Otto
Q418649 Q17113803 Q4989272 Q11967823 Q22077160 Q5972223 Q7825629 Q11977136 Q4251556 Q4953253 Q6480458 Q16658336 Q4994293 Q11968915 Q4581680 Q711792 Q1770193 Q4971511 Q6240638 Q543738 Q6093535
OR((Q1621656,P725,c(Q502895)), (Q17195038,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1621656
relation P725
action find
entity Q17195038
relation P161
type Q502895
[ANSWERS] worked on the dubbing for Solid Snake or starred in Saint Hans' Celebration
{'OR': [['Q1621656', 'P725', {'concept': 'Q502895'}], ['Q17195038', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . { { resource:Q1621656 property:P725 ?w } UNION { resource:Q17195038 property:P161 ?w } } }
Akio Ōtsuka Anne-Lise Wang Sonja Mjøen Erling Drangsholt Sofie Bernhoft Sigurd Magnussøn Tore Foss Ingeborg Cook Ulf Selmer Else-Merete Heiberg Lalla Carlsen Helge Essmar Johannes Eckhoff Finn Mehlum Jon Lennart Mjøen David Hayter Egil Hjorth-Jenssen Sigrun Otto Claus Wiese Aud Schønemann Toralf Sandø
Else-Merete Heiberg, Helge Essmar, Akio Ōtsuka, Ulf Selmer, Finn Mehlum, Aud Schønemann, Egil Hjorth-Jenssen, Sigurd Magnussøn, Tore Foss and Sigrun Otto worked on the dubbing for Solid Snake or starred in Saint Hans' Celebration
Else-Merete Heiberg Helge Essmar Akio Ōtsuka Ulf Selmer Finn Mehlum Aud Schønemann Egil Hjorth-Jenssen Sigurd Magnussøn Tore Foss Sigrun Otto
action filter_type
action union
action find
entity Solid Snake
relation voice actor
action find
entity Saint Hans' Celebration
relation cast member
type common name
{'OR': [['Solid Snake', 'voice actor', {'concept': 'common name'}], ["Saint Hans' Celebration", 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . { { resource:Solid_Snake property:voice_actor ?w } UNION { resource:Saint_Hans'_Celebration property:cast_member ?w } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1591784 Q2631107
P20
Q56061
USER
Which administrative territories did the demise of Helena Lekapene or Moshe Czerniak occur ?
OR((Q2631107,P20,c(Q56061)), (Q1591784,P20,c(Q56061)))
action filter_type
action union
action find
entity Q2631107
relation P20
action find
entity Q1591784
relation P20
type Q56061
{'OR': [['Q2631107', 'P20', {'concept': 'Q56061'}], ['Q1591784', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1591784 property:P20 ?y } UNION { resource:Q2631107 property:P20 ?y } } . ?y rdf:type ontology:Q56061 }
Moshe Czerniak Helena Lekapene
action filter_type
action union
action find
entity Helena Lekapene
relation place of death
action find
entity Moshe Czerniak
relation place of death
type administrative territorial entity
{'OR': [['Helena Lekapene', 'place of death', {'concept': 'administrative territorial entity'}], ['Moshe Czerniak', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Moshe_Czerniak property:place_of_death ?y } UNION { resource:Helena_Lekapene property:place_of_death ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q33935 Q16869
SYSTEM
Tel Aviv, Constantinople
Q33935 Q16869
OR((Q2631107,P20,c(Q56061)), (Q1591784,P20,c(Q56061)))
action filter_type
action union
action find
entity Q2631107
relation P20
action find
entity Q1591784
relation P20
type Q56061
The demise of Helena Lekapene or Moshe Czerniak occurred in [ANSWERS]
{'OR': [['Q2631107', 'P20', {'concept': 'Q56061'}], ['Q1591784', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1591784 property:P20 ?y } UNION { resource:Q2631107 property:P20 ?y } } . ?y rdf:type ontology:Q56061 }
Tel Aviv Constantinople
The demise of Helena Lekapene or Moshe Czerniak occurred in Tel Aviv and Constantinople
Tel Aviv Constantinople
action filter_type
action union
action find
entity Helena Lekapene
relation place of death
action find
entity Moshe Czerniak
relation place of death
type administrative territorial entity
{'OR': [['Helena Lekapene', 'place of death', {'concept': 'administrative territorial entity'}], ['Moshe Czerniak', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Moshe_Czerniak property:place_of_death ?y } UNION { resource:Helena_Lekapene property:place_of_death ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12262995 Q1770193
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Egil Hjorth-Jenssen or Manuel Pagola Aizpiri ?
OR((Q1770193,P27,c(Q15617994)), (Q12262995,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1770193
relation P27
action find
entity Q12262995
relation P27
type Q15617994
{'OR': [['Q1770193', 'P27', {'concept': 'Q15617994'}], ['Q12262995', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1770193 property:P27 ?v } UNION { resource:Q12262995 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Manuel Pagola Aizpiri Egil Hjorth-Jenssen
action filter_type
action union
action find
entity Egil Hjorth-Jenssen
relation country of citizenship
action find
entity Manuel Pagola Aizpiri
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Egil Hjorth-Jenssen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Manuel Pagola Aizpiri', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Egil_Hjorth-Jenssen property:country_of_citizenship ?v } UNION { resource:Manuel_Pagola_Aizpiri property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q29
SYSTEM
Norway, Spain
Q20 Q29
OR((Q1770193,P27,c(Q15617994)), (Q12262995,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1770193
relation P27
action find
entity Q12262995
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Egil Hjorth-Jenssen or Manuel Pagola Aizpiri
{'OR': [['Q1770193', 'P27', {'concept': 'Q15617994'}], ['Q12262995', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1770193 property:P27 ?v } UNION { resource:Q12262995 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Norway Spain
Norway and Spain are the countries of citizenship of Egil Hjorth-Jenssen or Manuel Pagola Aizpiri
Norway Spain
action filter_type
action union
action find
entity Egil Hjorth-Jenssen
relation country of citizenship
action find
entity Manuel Pagola Aizpiri
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Egil Hjorth-Jenssen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Manuel Pagola Aizpiri', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Egil_Hjorth-Jenssen property:country_of_citizenship ?v } UNION { resource:Manuel_Pagola_Aizpiri property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]